I have tried to add an OSM API to a map view but when I try to add following the below
>Add layer from URL
>Paste in URL
>Select 'WMTS OGC'
I get an error - Service does not exist or is inaccessible.
When I add the same OSM API via the same method to map view classic it works fine.
What am I missing? Is this function just not available yet in the map view?
Solved! Go to Solution.
Hey Andrew,
Thanks for getting back and showing a screenshot. The key itself should go under Value and the word "key" should go under Parameter. Top of my head I cannot remember if it matters if this is capitalised so I would try this in upper and lower case.
Hopefully that fixes things. I would also suggest deleting that screenshot as the API key could be used by other users viewing the thread. With OpenStreetMap I don't think this could be done maliciously, but it could lead to rate limiting if someone spammed requests to the service.
Hope that helps!
David
For basic map loading, as OP is wanting, on native Android, it's free. Even for 500k+ requests. If they're using JavaScript embedded in a WebView, then that's a different story, but there's no need to use OSM for this unless you specifically do not want to use Google Maps.
Hey Andrew,
Is there a key with the API? If so then this will need to be added as a custom parameter when using Map Viewer, rather than being included in the WMTS URL.
Hope that helps!
David
Hi @David_McRitchie ,
Thanks for getting back to me.
There is an Project API key and a Project API secret key.
I have tried to add the WMTS API Endpoint address and then entered in both of the above as a custom parameters (seperately) and I still get 'Service does not exist or is inaccessible'
I've added a screenshot for reference.
Hey Andrew,
Thanks for getting back and showing a screenshot. The key itself should go under Value and the word "key" should go under Parameter. Top of my head I cannot remember if it matters if this is capitalised so I would try this in upper and lower case.
Hopefully that fixes things. I would also suggest deleting that screenshot as the API key could be used by other users viewing the thread. With OpenStreetMap I don't think this could be done maliciously, but it could lead to rate limiting if someone spammed requests to the service.
Hope that helps!
David
I am having a similar issue - would it be possible to see the original screenshot with the API key lined out?
Here you are @KarenFergason1