leaflet-geojson-selector | Show GeoJSON Layer like as Interactive Menu List | Map library
kandi X-RAY | leaflet-geojson-selector Summary
kandi X-RAY | leaflet-geojson-selector Summary
Show GeoJSON Layer like as Interactive Menu List
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of leaflet-geojson-selector
leaflet-geojson-selector Key Features
leaflet-geojson-selector Examples and Code Snippets
Community Discussions
Trending Discussions on leaflet-geojson-selector
QUESTION
I have a question (unexpectedly) about styling markers in leaflet. I have a map with list displaying some earthquakes from geojson (http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson). The thing is I want to set the markers colors due to mag property in geojson. I tried some code on my own but nothing seems to work for me. Do you have please some idea where could be the problem or how to do this? Thank you for all your help. Below is my js code:
...ANSWER
Answered 2017-Feb-23 at 14:15You can style your markers depending on choosen value by adding the style
function to your geojson call:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install leaflet-geojson-selector
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page