Category | Education |
|
|||
Created | 2022-08-15 | ||||
Owner | Andres K. Blanton | ||||
Promotion level | None | ||||
Title | How to add an online custom map in Ovi _ webst | ||||
Description | How to add an online custom map in Ovi _ webst Original title How to add online custom bra tape measure maps in Ovi In Ovi Interactive Map Browser you can not only browse the built-in Sky Map Sky Map Image and Baidu Map but also add custom maps such as online Internet maps and aerial maps Description Preconditions for normal addition of online Internet maps (1) The map to be added adopts Mercator projection such as Amap and Tencent Map or adopts longitude and latitude projection such as China Geological Map (2) The URL link of the picture must contain the coordinate value XY of the map picture and the zoom level value Z of the map (3) The added map is displayed as a picture in JPG or PNG format and the size of each tile is 256256 or 512512 pixels 1 Get an online map URL Enter the official website of the map you need to add and use the browser to view and parse the host name host number URL size and format of the map as shown below In this paper printed tape measure Amap and road network are taken as examples (1) Use the browser to open Amap (https//dituamapcom) switch to the satellite map press the F12 function key and the developer tool will pop up (2) Click [Network] on the top of the developer tool to switch to the network interface move and zoom the map and the detailed information of the network request will be added to the list as shown below The following figure shows the request information of the satellite map Expand the full text Double-click any entry to copy the URL (https//webst04isautonavicom/appmaptilestyle=6&x=26969&y=12397&z=15) into the TXT text You can also see the title of the page "app map tile (256256)" and the "256256" is the dimensions of the tile Edit the URL in TXT text as follows (1) Change "X = 26969 & y = 12397 & Z = 15" to "X = { $X } & y = { $y } & Z = { $Z }" that is replace the fixed X y and Z coordinate values with variables Original URL https//webst04isautonavicom/appmaptilestyle=6&x=26969&y=12397&z=15 edited URL https//webst04isautonavicom/appm aptilestyle=6&x={$x}&y={$y}&z={$z} (2) Use the webst04 Is Autonavi Com "as the host name For some online maps the data may be distributed and stored on multiple servers You can place your mouse over the request information and watch the host name change in the URL bra tape measure For example for Amap the host number will change from "webst01 to webst04" Replace the changed part with the variable "{ $serverpart }" for example "4" is replaced by "{ $serverpart }" and the final hostname is "webst0 { $serverparts } Is Autonavi Com" Original URL https//webst04isautonavicom/appmaptilestyle=6&x=26969&y=12397&z=15 edited URL https//webst0 { $serverpart } Is Auton avicom/appmaptilestyle=6&x={$x}&y={$y}&z={$z} The URL format for some maps may be "https//atileopenstreetmaporg/6/50/22png" Where the a Tile Openstree tmap Org is the host name and the prefix a is the host number which varies from a to C and is replaced by "{ $serverpart } Tile Openstree tmap Org" "; /6/50/22png is the URL replaced by the variable "/{ $Z }/{ $X }/{ $y }png" Note If your graph is 512512 pixels that is X and y are divided by 2 and Z is subtracted by 1 2 Add a custom map On Ovi PC click [Custom Map]-> [Custom Map Management]-> [Add] Enter the [Custom Map [Add]] dialog box and set the parameters selected in the box in the following figure Explain (1) Map ID between 200-1000 the system will assign an ID number to each custom map without modification (2) Map name refers to the layer name which will be displayed under the [Custom Map] menu after setting such as "Amap Satellite Map" (3) Maximum level The highest level of the map For example the highest level of the Amap satellite map is 18 You can set it to 18 or above (4) Projection type You can choose according to the actual situation of the map generally [Mercator China] or [Mercator Global] The Amap uses Mercator China so this article chooses Mercator China (5) Picture type you can select according to the actual situation of the map For topographic map satellite map (or image map) select [Image Map]; for other maps select [Normal Map] (6) Picture format you can choose according to the actual situation of the map The Amap is JPEG so select [JPG]; the Open Stree tMap is "PNG" custom tape measure You can see it in the page map request information (7) Image size You can select according to the actual situation The size of a tile in the Amap satellite image is "256256" so select [256 pixels] Some maps may be "512512" You can view the tile size by clicking on a tile in the page map request information and switching to [Preview (header)] (8) Host name Please fill in according to the actual situation According to 1 Get an online map For the analysis in URL the is Autonavi Com "" webst0 { $serverpart } "Should be filled in the Amap (9) Port number online Internet map which is usually kept as default If the network port number is set for your map server it needs to be filled in (10) Host number you fill in according to the actual situation of the map The Amap is "1 to 4" and the OpenStree tMap is "a to C" (11) URL you fill in according to the actual situation of the map The Amap is "/appmaptile Style = 6 & X = { $X } & y = { $y } & Z = { $Z }" and the OpenStree tMap is "/{ $Z }/{ $X }/{ $y }png" Note If your graph is 512512 pixels that is X and y are divided by 2 and Z is subtracted by 1 After setting click [OK] You can browse the map by clicking [Customize Map] and selecting the layer to be added Special instructions Some maps require a token or secret key to access such as Sichuan Sky Map Sichuan map token generation link http//wwwscgisnetcn/imap/iMapServer/Token/defaultaspx The layer configuration information of Gaode Road Network is as follows Image type Normal map Image format PNG Image size 256 pixels Host name wprd0 { $serverpart } Is Autonavi Com Port number Default host number 1 to 4 URL/appmaptile x={$x}&y={$y}&z={$z}&&lang=zh_cn&size=1&scl=1&style=8 [OK] Under the [Custom Map] menu select [Amap Satellite Map] to view the road network and satellite map 4 Commonly used maps URL (1) Amap (small font) Projection Type Mercator China Image Type Normal Map Image Format PNG Image Size 256 pixels Host Name webrd0 { $serverpart } Is Autonavi Com Port Number Default Host Number 1 to 3 URL/appmaptile lang=zh_cn&size=1&scale=1&style=7&x={$x}&y={$y}&z={$z} (2) Amap (large font) Projection Type Mercator China Image Type Normal Map Image Format PNG Image Size 256 pixels Host Name wprd0 { $serverpart } Is Autonavi Com Port Number Default Host Number 1 to 4 URL/appmaptile lang=zh_cn&size=1&style=7&x={$x}&y={$y}&z={$z}&scl=1 We respect the author's achievements if suspected of infringement please contact us to delete in time Return to Sohu to see more Responsible Editor tape-measure.com |
||||
|
Please register or log in.