PageRenderTime 29ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/MapView/Map/RMSpatialCloudMapSource.h

http://github.com/route-me/route-me
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. #import "RMAbstractMercatorWebSource.h"
  28. /*!
  29. \brief Subclass of RMAbstractMercatorWebSource for access to SpatialCloud.com MapSources.
  30. Allows access to SpatialCloud.com MapSources. Direct access can be attained using a loginID
  31. and password. Alternatively, a proxy server can be used in place of a loginID and password.
  32. If both a loginID/password pair and a server URL are provided, the server URL will be used.
  33. SpatialCloud.com MapSources are available for purchase & resale for various US & world
  34. datasets; in addition, SpatialCloud allows you to host/serve/resell your own datasets.
  35. Please visit http://spatialcloud.com to setup your own account, subscribe to the
  36. MapSource(s), & create your own MapStream(s), as well as licensing terms and fees.
  37. */
  38. @interface RMSpatialCloudMapSource : RMAbstractMercatorWebSource <RMAbstractMercatorWebSource> {
  39. NSString *customServerURL;
  40. NSString *loginID;
  41. NSString *password;
  42. }
  43. // URL string of proxy server used to access SpatialCloud.com tiles
  44. //
  45. // If you don't have a proxy server, use the loginID/password combination below
  46. // See http://www.spatialcloud.com/index.cfm?event=home.support for server sample code
  47. // Examples:
  48. // http://127.0.0.1:8080/openbd/custom/server/CFML/index.cfm?
  49. // http://localhost:8080/openbd/SSCustomServer/server/JSP/index.jsp?
  50. // http://localhost/server/PHP/index.php?
  51. @property (nonatomic, retain) NSString *customServerURL;
  52. // LoginID and password used to access a MapStream
  53. //
  54. // See http://www.spatialcloud.com/index.cfm?event=home.support to signup
  55. // For the purposes of this demo, use 20101213051851055 for the loginID and
  56. // gRtXbm79CODFq for the password
  57. // If you don't want to release your loginID in your app's binary, consider
  58. // using a proxy server as mentioned above
  59. @property (nonatomic, retain) NSString *loginID;
  60. @property (nonatomic, retain) NSString *password;
  61. - (id)initWithLoginID:(NSString *)newLoginID password:(NSString *)newPassword;
  62. - (id)initWithCustomServerURL:(NSString *)newCustomServerURL;
  63. @end