SuperMap iServer supports publishing online Google
Maps services (via Google Static Maps API) to local map services, such
as WMS service, WMTS service, and REST map services, and supports storing
the map tiles in the local. Before publish services, make sure you have
a Client ID and a private cryptographic key for the Google Maps service.
You can publish service Google services by following
these steps:
- On the Home page of Service
Management -> Publish Service or the Services
-> Service Management page, click Quickly
Publish Service to enter the publishing wizard;
- When the select data source is "Google
maps service", click Next;
- Configure the service data to be published,
such as the digital signature with access to Google Maps, and the
parameters for map display, including:
- Google Maps client ID: An account with access
to Google Maps
- Google Maps CryptoKey: The private key for
this account
- Language: The language used for the annotation
in the map. Select "zh-cn" in Chinese and "en-us"
in English
- Google maps width: The width (in pixels) of
a tile each time it is requested from Google Maps. Because a single
tile may have a Google watermark on it for each request, making the
tile larger reduces the watermark density throughout the window. However,
if a single tile is too large, it may affect the efficiency of tile
acquisition, so you should set a reasonable value according to the
hardware, software and network conditions.
- Google maps height: The width (in pixels) of
a tile each time it is requested from Google Maps. Generally, the
width and the height are generally set to the same.
- Select the published service type, such
as rest map service, and click Next;
- Configure the service, and select enable cache for map tiles. When
enabled, you can specify the storage type and location of tile data
generated during map browsing (e.g. SMTiles, MongoDB, OTS, GDP), click
Publish:
- After publishing, you can see the name
and link of the currently published service. Click it to access the
service directly.
After publishing, the service may not be able to plot
normally due to network reasons. In this case, you can set the proxy for
the provider. For detailed method, please refer to: configuring
Google Maps map service provider through XML files.