Skip to content

Latest commit

 

History

History
93 lines (78 loc) · 3.5 KB

README_en.md

File metadata and controls

93 lines (78 loc) · 3.5 KB

I. Introduction

Based on iServer, provides an example of aggregating various online tile map services. Such as Google Maps, Soso Maps, Sky Maps, etc.

Second, expand development

The examples are all based on the abstract class [ProviderBase] (https://github.com/yjjqrqqq/iServer_RemoteTileProviders/blob/master/remotetileproviders/ProviderBase.java). You need to specify a set of tile map parameters. The specific parameters are described as follows:

Name Type meaning Necessary
mapName String Map name Yes
origin Point2D Slice origin Yes
bounds Rectangle2D Full graph range Yes
prjCoordSys PrjCoordSys Map projection Yes
scales double[] Map scale collection No
resolutions double[] Map resolution set No
remoteTileUrl RemoteTileUrl Provides a method to construct the URL of the request tile Yes

note:
1.Which resolution set and scale set, set at least one, but it is recommended to set.

2. SuperMap default tile axis direction is the lower right. If the orientation of the tile axis of the online map is different from that of the supermap, then the tile row number may involve conversion. For details, please refer to [Partial tile map service parameter introduction] (https://github.com/SuperMap/iServer_RemoteTileProviders/blob/master/%E9%83%A8%E5%88%86%E7%93%A6%E7% 89%87%E5%9C%B0%E5%9B%BE%E6%9C%8D%E5%8A%A5%8F%82%E6%95%B0%E4%BB%8B%E7%BB% 8D.docx) and extension examples.

Third, the configuration and deployment

For details, see [Configuration and Deployment] (https://github.com/SuperMap/iServer_RemoteTileProviders/blob/master/%E9%85%8D%E7%BD%AE%E5%92%8C%E9%83%A8%E7 %BD%B2.docx) .

IV. Licensing

See "LICENSE.txt" for details.

V. Extension Example

1.Google Map
original_THmC_4b6f000174941190

2.Search map
original_THmC_4b6f000174941190

3.Day map
original_THmC_4b6f000174941190
注:Note: SuperMap iServer has a built-in sky map provider. The example is mainly to illustrate how to extend the online map service of WGS84 projection.

6. Import as an Eclipse project

1.Import the Java project: File→Import→Select Existing Projects into Workspace under General→Select project folder→Finish to complete the import.
2. Add the project dependent jar package: Right-click on the project name → Build Path → Configure Build Path → Check the JRE System Library under Order and Export → Click the Add External JARs button under the Libraries tab. Select %SuperMapiServer_HOME%/webapps/ All jars under iserver/WEB-INF/lib/.