Geojson – I Need to use this, I have 100’s of markers causing load probs
-
So I have a new problem, i created many markers but they are all inlined, and not using geojson file..
I am trying to figure out how to use this:
Here is my basic markers.json
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [40.979898069620155, -76.640625]
},
"properties": {
"names": "Zimmsville",
"descriptions": "Recommended Level 2",
"url": "/icons/union.png",
"size": [30, 30]
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [56.36525013685609, 28.828125000000004]
},
"properties": {
"names": "Super Market",
"descriptions": "Recommended Level 15",
"url": "/icons/union.png",
"size": [30, 30]
}
}
]
}Here is the shortcode:
[leaflet-geojson src=”/markers.json”
iconurl=”{url}”
iconsize=”{size}”
iconanchor=”15,30″
popupanchor=”0,-30″
tooltipanchor=”0,-15″]
{names} – {descriptions}[/leaflet-geojson]
This isnt showing the icons, it does show names and description
It seems the {url} is not pulling the data from the json, while the name / description works..
Can someone help make a basic example to get this working? I can then start to convert the others.
Another tidbit – So Just to try it out, I put {url} at {names} – {descriptions} – {url] [/leaflet-geojson]
and it shows the URL in the hover / tooltip , but for some reason, its not putting it in the other spot where it needs to go???
- You must be logged in to reply to this topic.