Hi all,
I have a GeoLocation field in a Doctype. In the js file for the doctype, I want to add geoJson data to the map.
In the onload_post_render hook I have:
L.geoJSON(geo, { weight: 1, style: { color: marker_color, opacity: 0.3, fillColor: marker_color, fillOpacity: 0.3 } }).addTo(map)
“geo” is the GeoJson object.
Locally in my dev system this works flawlessly. However, in the production environment I get:
Uncaught TypeError: L.geoJSON is not a function
Any one can help with this?
Thanks
Dom