According to the test results of the test team, this article will introduce you how to produce Map Tiles more efficiently from the following seven aspects:
- Select the appropriate scale series
- TilePath Settings
- Map display optimization
- Using Filter to filter too small objects in the map can improve the speed of Map Browsing without affecting the amount of information carried by the map.
- After anti-aliasing, linetypes and text in vector maps look smoother, improving the visual experience, but causing performance degradation. Therefore, when using anti-aliasing, we need to find a balance between browsing speed and performance, not only to achieve the best browsing effect, but also to ensure the browsing speed.
- For more complex maps, to avoid too many object nodes, you can consider Smooth Line or resampling.
- Keep Workspace consistent
- Set Map Tiles range and Origin of Tile appropriately.
- Tiles can be generated for frequently visited areas of the map to reduce the cost of generating and storing tiles. For example, when accessing a World Map, you don't need to Generate Tiles for the vast no-man's land.
- When Generate Map Tiles, it is recommended to set the Origin of Tile to the Upper Left Coordinates of the Whole Map range of the published map to be consistent with the SuperMap iServerOrigin of Tile. When modifying the Bounds Info of Map Tiles as required, you also need to keep the Origin of Tile to the Whole Map scope.
- Tile image plotting device-independent feature
- Set the CustomDPIEnable property in the SuperMap. XML Config File under the bin directory of the SuperMap iDesktopX installation root to true.
- Modify the CustomDPIEnable attribute in the SuperMap. XML file under the bin directory of the corresponding SuperMap iServer installation directory \ support \ objectsjava to true.
- Keep the same values for CustomDPIX and CustomDPIY for both SuperMap. XML files on the desktop and server.
- If the Map Tiles generated by SuperMap iDesktopX need to be published on the SueprMap iServer server, do not encrypt the Tiles when generating the Compact Map Tiles, otherwise there will be problems when publishing on the server.
The appropriate scale level for Layer Settings allows for a more complete and aesthetically pleasing display of various geographic features when browsing the map, while avoiding the problem of jumping display when browsing the map. Therefore, when mapping, we need to consider whether the geographical elements under different scales are displayed or what kind of form they are displayed. For example, in the small scale level, it is recommended to use Line Dataset to express the river, while in the large scale level, it can use Region Dataset to express the river. As shown in the figure below, the left side is a small scale map and the right side is a large scale map.
If The generated Tile is to be published on the SuperMap iServer server, you can directly set the TilePath Settings to the SuperMap iServer root directory \ webapps \ iserver \ output \ cache. Otherwise, the Tile copy may take a long time.
In the process of Create Map, you can consider using Antialiasing on the linetype or Text layer to filter the display of objects that are too small.
The map parameter in Workspace determines that SuperMap iServer uses the name of the Tile image in the Tile file. Therefore, it is necessary to ensure that the map in Workspace used to make Tile is consistent with the map in Workspace used to publish SuperMap iServer. The influence parameters include the style of the map, the connection of the data, the layer order, Default Scale, Map Bounds, and so on. Therefore, after the production of Tile, try not to modify the map of Workspace to ensure that the published map is consistent with the map used to produce Tile.
At the same time, it is necessary to keep All Layers available in the map. Dataset and Datasource corresponding to All Layers exist in Workspace. Editing of objects in the Dataset, such as adding, deleting, updating, etc., will not affect the Tile picture outside the editing area (just update the Tile in this area through SuperMap iServer).
If SuperMap iDesktopX and SuperMap iServer are not on the same machine, the Tile on different devices may not work well together due to different map resolutions displayed by the devices, such as splicing problems. SuperMap iDesktopX supports the configuration of Map Tiles independent of the device display resolution. The specific operation method is as follows:
Figure: SuperMap. XML file for SuperMap |