I'm making a simple app to show leaflet map with meteor.But it doesn't work.This is my code : Html:
|
Dadi,
One major issue is the url you are using for the featureLayer:
var parks = L.esri.featureLayer({
url: "http://gis.d3smartcity.ae/arcgis/rest/services/Operation_layers/d3_Masterplan/MapServer?f=jsapi",
style: function () {
return { color: "#70ca49", weight: 2 };
}
}).addTo(map);
it should be (no ?f=jsapi):
var parks = L.esri.featureLayer({
url: "http://gis.d3smartcity.ae/arcgis/rest/services/Operation_layers/d3_Masterplan/MapServer",
style: function () {
return { color: "#70ca49", weight: 2 };
}
}).addTo(map);
thanks, but I still having this type of error :
Ps : I'm using the npm package "esri-leaflet"
Dadi,
This is a bit out of my comfort zone, as I don't work with Meteor or NPM leaflet package.
I am going to tag the Leaflet group maybe someone there can help.