ui-leaflet
ui-leaflet copied to clipboard
default tiles URL is broken for Cordova / webviews / file:///
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.
Yes, I have faced this issue too