Warning | |
---|---|
title | Nearmap WMS 2.0As of August 2022 Nearmap have updated their WMS server, they have referred to this update as "WMS 2.0" but this is not a change to the WMS version supported by Nearmap, it is still 1.1.1, and is just used to indicate a new implementation of their server. This change will break existing Weave toc model configurations for the Nearmap WMS map engines, since the change involved the renaming of all of the layers in Nearmap. The Nearmap WMS map engine in Weave still works as it did before, but you will need to update any toc models you have that relate to the Nearmap map engine to reflect the new layer names. Note you should ensure that the id attribute for each toc model entry remains the same after the update so as to not break any bookmarks. |
...
Running the above command will produce output similar to the following (it's tidied slightly to ensure the lines are not too long).
Sample Nearmap ToC
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<toc:model id='toc.nearmap.custom'> <mapengine>nearmap.custom</mapengine> <entry id='l_nearmap_2022_06_28' layer='area/a9e71723-ccd2-43a7-9983-1e4b91180492/survey/66a9a120-fd8d-11ec-aed0-0ff28f9b30f6/2022-06-28' label='2022-06-28' checked='false'/> <entry id='l_nearmap_2022_05_21' layer='area/a9e71723-ccd2-43a7-9983-1e4b91180492/survey/b6a319f0-e527-11ec-92cb-5f369ada9adb/2022-05-21' label='2022-05-21' checked='false'/> <entry id='l_nearmap_2022_04_17' layer='area/a9e71723-ccd2-43a7-9983-1e4b91180492/survey/080e2fcc-ca85-11ec-a3f1-63cd31199c81/2022-04-17' label='2022-04-17' checked='false'/> <entry id='l_nearmap_2022_02_12' layer='area/a9e71723-ccd2-43a7-9983-1e4b91180492/survey/bcb9e86c-9f29-11ec-a2bb-0f7189b9585c/2022-02-12' label='2022-02-12' checked='false'/> <!-- more layers here --> <entry id='l_nearmap_2009_10_12' layer='area/a9e71723-ccd2-43a7-9983-1e4b91180492/survey/088cfd6c-b95e-11e7-acde-0b13416f1c3c/2009-10-12' label='2009-10-12' checked='false'/> <entry id='l_nearmap_all_combined' layer='area/a9e71723-ccd2-43a7-9983-1e4b91180492/all/all-combined' label='Combined' checked='false'/> <entry id='l_nearmap_satellite' layer='Satellite' label='Satellite' checked='false'/> </toc:model> |
Simple WMS Service
First, add a reference to the WMS Map Engine you should replace "[apikey]" with your Nearmap API key.
...
Running the above command will produce output similar to the following.
Sample Nearmap ToC
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<toc:model id='toc.nearmap.simple'> <mapengine>nearmap.simple</mapengine> <entry id='l_nearmap.simple_nearmap' layer='Nearmap' label='Nearmap' checked='false'/> <entry id='l_nearmap.simple_nearmap/nearmap/australia' layer='Nearmap/Nearmap/Australia' label='Australia latest' checked='false'/> <entry id='l_nearmap.simple_satellite' layer='Satellite' label='Satellite' checked='false'/> </toc:model> |
...