angular-ui / ui-leaflet

AngularJS directive to embed an interact with maps managed by Leaflet library
http://angular-ui.github.io/ui-leaflet
Other
314 stars 134 forks source link

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

Open jokeyrhyme opened 8 years ago

jokeyrhyme commented 8 years ago

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

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

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

Or, just default to HTTPS.

vmusulainen commented 8 years ago

Yes, I have faced this issue too