angularjs - Angular Leaflet geojson custom marker -


Text after "

Is it possible to define your own marker icon in GeoJSON?

I have tried several ways to get the desired effect but nothing works.

Example code from Geogogen Feature Collection where I want to add custom icon: < "{Title}", "geometry": {"type": "feature", "id": "point 1", "attribute": {"name": {"type" : "Point", "coordinate": [22.57031047873893, 51.25080964529834]}}

MapBox Made for a sheet that should be trickled.

And another great example from MapBox,

Here are some sample codes from the site:

  on geoJsonData = {"type": "FeatureCollection "" "{{" Type ":" feature "," property ": {" fillcolor ":" #eeffee "," fillopacity ": 0.8}," geometry ": {" type ":" polygon " "Coordinates": [[[119.2895599, 21.718679], [119.2895599, 25.373809], [122.61,840, 25.3,73,80, 9 17], [122.61,840, 21.718, 67 , "80", [119.2895599, 21.718679]]]}}, {"type": "feature", "attribute": {"marker-color": "# 00ff00"}, "geometry": {"type": " Point "," coordinate ": [120.8 9 355, 23.68477]}}]}}; Up GeoJSON = L.geoJson (geoJsonData, {pointToLayer: L.mapbox.marker.style, Style: Function) {return feature.properties;}}). AddTo (map);  

Note: This original portal is not part of the JS library, it requires mapbox.js (and mapbox.css)


Comments