tombatossals / angular-leaflet-directive

AngularJS directive to embed an interact with maps managed by Leaflet library
http://tombatossals.github.io/angular-leaflet-directive
MIT License
1.5k stars 635 forks source link

Tiles error on load in Electron #1175

Closed jlanio closed 7 years ago

jlanio commented 7 years ago

Something strange is happening when using the electron directive. For some reason the electron tries to load the tiles in local file.

as c.tile.openstreetmap.org/1/1/1.png:1 GET file://c.tile.openstreetmap.org/1/1/1.png net::ERR_FILE_NOT_FOUND

HTML

<leaflet style="height: 200px;"></leaflet>

Controller

angular.extend($scope, { center: { lat: 51.505, lng: -0.09, zoom: 8 } });

sofivsofi commented 7 years ago

Did you manage to find a solution about this ?