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

tileLayer not work #1133

Closed tungtouch closed 8 years ago

tungtouch commented 8 years ago

Hi guys,

I had test tilter layer URL: https://api.mapbox.com/styles/v1/mapbox/outdoors-v9/tiles/256/{z}/{x}/{y}?access_token={token} it's work!

$scope.tiles = {
        url : "https://api.mapbox.com/styles/v1/mapbox/outdoors-v9/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1IjoidHVuZ3RvdWNoIiwiYSI6ImNpcXl5ZGkyMDAxemtmcW04ZnV0b2FzM2oifQ.xxxx"
      };

but with tiler layer URL: https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?{token} It's not work.

$scope.tiles = {
        url : "https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoidHVuZ3RvdWNoIiwiYSI6ImNpcXl5ZGkyMDAxemtmcW04ZnV0b2FzM2oifQ.xxxx"
      };

Because i like tiler layer from http://leafletjs.com/examples/mobile-example.html