Plugin Author
bozdoz
(@bozdoz)
That’s a good question. First you’ll need the source data (a polygon hosted somewhere), and I assume that you’ll need to copy it to your site, and then I could probably write a bit of a script to allow for those polygons to be displayed on a map. Maybe something like:
[leaflet-geojson url="//somewhere.com/path/to/geojson.json"]
What are your thoughts on that?
That sounds like an awesome plan!
As for the data syntax, you’ll support GeoJSON?
https://en.wikipedia.org/wiki/GeoJSON
bozdoz, works perfectly fine! Thanks a lot! Really appreciate your efforts!
One last question though – what attribute to use to change the background color of the selected area? Tried both color=”green” and background=”green” but to no avail?
Plugin Author
bozdoz
(@bozdoz)
What do you mean by selected area?
Sorry, here is a screenshot:
http://pasteboard.co/Opm9nYco.png
See the purple background color within the county borders? I’d like to change that.
Any ideas?
Plugin Author
bozdoz
(@bozdoz)
Options are color, weight, and opacity:
[leaflet-geojson color=”red” weight=”5″ opacity=”1″]
for example
Thanks again, works like a charm! 🙂