How to load API Map Servers
Hi,
I am new to GM and what I am trying to do is view my companies 'C Maps' which are provided via a URL with an API Key.
I have tried all the options available via the 'Select Online Data Source to Download - Add New Source' (such as TMS, WCS, WFS etc.) but to date I have been unsuccessful. What I don't see is any of the options asking for the actual API key.
If it's any help, what I am trying to do is the same as adding 'XYZ Tiles - New Connection' in QGIS!!
Any help would be great.
Thanks, Tim
I am new to GM and what I am trying to do is view my companies 'C Maps' which are provided via a URL with an API Key.
I have tried all the options available via the 'Select Online Data Source to Download - Add New Source' (such as TMS, WCS, WFS etc.) but to date I have been unsuccessful. What I don't see is any of the options asking for the actual API key.
If it's any help, what I am trying to do is the same as adding 'XYZ Tiles - New Connection' in QGIS!!
Any help would be great.
Thanks, Tim
Answers
-
Hello,
Is the API key included as part of the URL, or is it included in an authorization header, or something similar? Can you provide a sample of the URL with the API key applied (or at least an indicator of where the API key would go)? That might help the crowd figure out how it can fit into the Global Mapper interface.
Cheers,
Bob -
Hi Bob,
Thanks for the reply. The API key is part of a URL. Below is what the URL looks like (with a couple of modifications as I am not at liberty to share the full URL), so if this helps with how to get the maps displayed please let me know.
Cheers, Tim -
Hi Tim,
Have you tried the TMS tiles definition, with the full URL, including the API key, and substituting %x, %y, and %z for the tile identifier? Such as this:https://api.xxxxxxxx.world/services/chart/CMap?X=%x&Y=%y&Z=%z&Type=full&apiKey=e208aXa1-e2b7-4591-Xaad-4a26530132fb
Cheers,
Bob -
Hi Bob,
Thanks for your response and sorry for not getting back to you earlier.
I have indeed tried using the TMS tiles definition option, but I get an error message (see image 5).
The other images (1-4) show the steps I have taken to try and get them to load - can you see any obvious error I'm doing?
Thanks for your help. -
Hello,
In order to get Global Mapper to put the tile coordinate values into the URL, you must use %x, %y, and %z (for X, Y, and Z, respectively). In your URL, you are using?X=[x]&Y=[y]&Z=[z]
but you need to use?X=%x&Y=%y&Z=%z
If for some reason you need the square brackets, then you would use?X=[%x]&Y=[%y]&Z=[%z]
Cheers,
Bob -
Hi Bob,
Sorry for the late reply, but I have been on leave.
Anyway, many thanks for your perseverance, it looks as if you've provided the magic to get it working.
Thanks again, Tim -
Hi, just in case you are still having trouble, here is a link to my solution for this configuration. https://www.globalmapperforum.com/discussion/14273/opencyclemap-tiles-in-gm#latest
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 346 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 639 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 417 Projection Questions
- 829 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 179 Announcement and News
- 922 Bug Report
- 559 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 573 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 241 How I use Global Mapper
- 108 Global Mapper Forum Website