ui-leaflet icon indicating copy to clipboard operation
ui-leaflet copied to clipboard

default tiles URL is broken for Cordova / webviews / file:///

Open jokeyrhyme opened this issue 9 years ago • 1 comments

Within a Cordova app, the protocol is "file:///".

So the protocol-relative URL pattern for use with tiles does not work:

  • https://github.com/angular-ui/ui-leaflet/blob/master/src/services/leafletMapDefaults.js#L26

It might be best to whitelist HTTP and HTTPS, and fall back to HTTPS if the protocol is unrecognised.

Or, just default to HTTPS.

jokeyrhyme avatar Dec 22 '15 04:12 jokeyrhyme

Yes, I have faced this issue too

vmusulainen avatar Jan 22 '16 22:01 vmusulainen