/MapView/Map/RMSpatialCloudMapSource.h
C Header | 72 lines | 12 code | 7 blank | 53 comment | 0 complexity | 1bfa43afb2cca0be690ac7ac43bd26f6 MD5 | raw file
1// 2// RMSpatialCloudMapSource.h 3// 4// Copyright (c) 2011, SpatialCloud 5// All rights reserved. 6// 7// Redistribution and use in source and binary forms, with or without 8// modification, are permitted provided that the following conditions are met: 9// 10// * Redistributions of source code must retain the above copyright notice, this 11// list of conditions and the following disclaimer. 12// * Redistributions in binary form must reproduce the above copyright notice, 13// this list of conditions and the following disclaimer in the documentation 14// and/or other materials provided with the distribution. 15// 16// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 20// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26// POSSIBILITY OF SUCH DAMAGE. 27 28#import "RMAbstractMercatorWebSource.h" 29 30/*! 31 \brief Subclass of RMAbstractMercatorWebSource for access to SpatialCloud.com MapSources. 32 33 Allows access to SpatialCloud.com MapSources. Direct access can be attained using a loginID 34 and password. Alternatively, a proxy server can be used in place of a loginID and password. 35 If both a loginID/password pair and a server URL are provided, the server URL will be used. 36 37 SpatialCloud.com MapSources are available for purchase & resale for various US & world 38 datasets; in addition, SpatialCloud allows you to host/serve/resell your own datasets. 39 Please visit http://spatialcloud.com to setup your own account, subscribe to the 40 MapSource(s), & create your own MapStream(s), as well as licensing terms and fees. 41 */ 42 43@interface RMSpatialCloudMapSource : RMAbstractMercatorWebSource <RMAbstractMercatorWebSource> { 44 NSString *customServerURL; 45 NSString *loginID; 46 NSString *password; 47} 48 49// URL string of proxy server used to access SpatialCloud.com tiles 50// 51// If you don't have a proxy server, use the loginID/password combination below 52// See http://www.spatialcloud.com/index.cfm?event=home.support for server sample code 53// Examples: 54// http://127.0.0.1:8080/openbd/custom/server/CFML/index.cfm? 55// http://localhost:8080/openbd/SSCustomServer/server/JSP/index.jsp? 56// http://localhost/server/PHP/index.php? 57@property (nonatomic, retain) NSString *customServerURL; 58 59// LoginID and password used to access a MapStream 60// 61// See http://www.spatialcloud.com/index.cfm?event=home.support to signup 62// For the purposes of this demo, use 20101213051851055 for the loginID and 63// gRtXbm79CODFq for the password 64// If you don't want to release your loginID in your app's binary, consider 65// using a proxy server as mentioned above 66@property (nonatomic, retain) NSString *loginID; 67@property (nonatomic, retain) NSString *password; 68 69- (id)initWithLoginID:(NSString *)newLoginID password:(NSString *)newPassword; 70- (id)initWithCustomServerURL:(NSString *)newCustomServerURL; 71 72@end