jamesdales / IconMapSupport

MIT License
9 stars 1 forks source link

Background Custom URIs with API key #27

Open CarrieAnne opened 1 year ago

CarrieAnne commented 1 year ago

Trying to use the MapTiles API via rapidapi.com and I need to use an API key and host header (X-RapidAPI-Key and X-RapidAPI-Host) to authenticate. There doesn't seem to be an option to add this when entering the custom URI, am I missing something? I can see that if I switch to MapBox an Access Token can be entered. The URI I'm trying is: https://maptiles.p.rapidapi.com/en/map/v1/${z}/${x}/${y}.png I'm looking at using this layer because of the option to show Open Street Map tiles but with all English (or French) labels, rather than local language, although the cost may be prohibitive for my organisation.
Many thanks

jamesdales commented 1 year ago

Hi

Currently this isn't supported, but sounds like something that should be. Let me get this functionality added in.

amarinos238 commented 10 months ago

Hi, not sure if this might help, but I set the basemap setting in IconMap to custom and then enter into the URI something like: https://api.maptiler.com/maps/pastel/{z}/{x}/{y}.png?key=
which works fine. Are the "$" characters correct in the case of maptiles? I hope I could help...