Tuesday, 23 August 2016

javascript - highlight feature with click in mapbox gl


I have a geojson layer of streets that are highlighted when moused-over.


My objective is now to highlight individual streets red with a click event. Only one street should be able to be highlighted at a time, and should remain highlighted until a different street is clicked.


All of my attempts so far have failed. Any idea as to what needs to be added to the following code?






HTML markers from geoJSON url















No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...