SuperMap iServer supports publishing online Google Maps services (via the Google Static Maps API) to local map services such as WMS services, WMTS services, REST map services, and supports storing the map tiles in the local. Before you publish the service, make sure you have a client ID and a private cryptographic key that accesses the Google Maps service.
You can quickly publish Google services with the following steps:
- Click Quickly publish a or multiple service button, select the data source to Google map service, click Next;
- Configure the service data to be published, such as a digital signature with Google Maps access, and the parameters of the map display, including:
- Google Maps client ID: An account with Google Maps access
- private cryptographic key: The private key of the account
- Language: The language used for annotations in the map
- Google Tile Width: The width of the tile (pixels) each time you request a tile from Google Maps. Because each request on a single tile may have a Google watermark, so the tile size can be set to larger to reduce the dense display of the watermark. However, when the tile size is too large it may affect the efficiency of tile access, so you should consider the hardware and software and network conditions to set a reasonable value.
- Google Tile Height: The height of the tile (pixels) each time the tile is requested from Google Maps. The width and the height are generally set to the same.
- Select the service type to be published, like REST-map service, click Next;
- Make the cache settings, after the cache is enabled, the tiles data will be stored in specified location when browsing the map, such as the SMTiles format. For the other configuration settings, please see Configure service component to use the tiles, click Next;
- Then you can see the service configuration information including data source, service type, etc. Click Finish to complete it;
- After publishing, you can see the service name and URL, like map-Google/rest. Click it to access the service.
The service, may be due to network reasons can not be displayed normally, in such a situation, you can set the agent for the service provider. For more information, see: Configuring Google Maps Map Service Provider through XML Files.