bozdoz
Forum Replies Created
-
Forum: Plugins
In reply to: [Leaflet Map] Markers are not visibleHi! Sorry for the late reply. I don’t see an explicit error in your post. Perhaps you could post the full console, or send me a link?
This does appear to be a similar topic to some previous topics, but most were not reproducible and some were WordPress theme/plugin issues (like CSS).
Forum: Plugins
In reply to: [Leaflet Map] Setting own markersSorry for the late reply!
I’m also sorry that I do not understand the question.
You can definitely have multiple user defined markers:
[leaflet-map]
[leaflet-marker]
[leaflet-marker]Creates 2 markers on the previous-defined map.
See screenshots:
Note that I created an invisible line between all markers to
fitbounds
on the map around all of them (I set the stroke to false).Let me know if this solves your problem.
Forum: Plugins
In reply to: [Leaflet Map] Custom style on shortcode leaflet-line or leaflet-geojsonNo way to add labels. I just pushed an update to the plugin to allow all style options, from here: https://leafletjs.com/reference-1.0.3.html#path
See :
And :
Forum: Plugins
In reply to: [Leaflet Map] Inline geojson?Are you trying to upload json files as media?
Forum: Plugins
In reply to: [Leaflet Map] Can I use custom KML or KMZ?kml is here: https://cdn.rawgit.com/mapbox/togeojson/master/test/data/polygon.kml
shortcodes:
[leaflet-map]
[leaflet-kml fitbounds=1]
Forum: Plugins
In reply to: [Leaflet Map] Can I use custom KML or KMZ?I’ve tested the above code in a post, and this is the output (note the request for the kml in the network tab):
Forum: Plugins
In reply to: [Leaflet Map] Can I use custom KML or KMZ?[leaflet-map]
[leaflet-kml src=”path/to/file.kml” fitbounds=1]Forum: Plugins
In reply to: [Leaflet Map] Can I use custom KML or KMZ?Added!
Forum: Plugins
In reply to: [Leaflet Map] Set Google Satellite ViewThink that might be a breach in Google Maps terms of use. If you want to use Google Satellite, you should not use this plugin.
Forum: Plugins
In reply to: [Leaflet Map] Inline geojson?What do you mean by WordPress forbids JSON files?
Forum: Plugins
In reply to: [Leaflet Map] Navionics mapsYes, absolutely. Put the URL in the Leaflet Map default settings in the admin, or set it per tile with:
[leaflet-map tileurl="https://{s}.example.com/{z}/{x}/{y}.png"]
Forum: Plugins
In reply to: [Leaflet Map] Show coords of markersI had this working before but it stopped working and caused problems so I removed it. Sorry! It was mostly for debugging purposes anyway. Is there a specific use case you’re thinking of?
Forum: Plugins
In reply to: [Leaflet Map] GeoJSON with markerSorry for the lateness of my reply. This should be doable. Stay tuned.
Forum: Plugins
In reply to: [Leaflet Map] Click event with geojson dataBoth are definitely possible. I like the color attribute idea (like geojson.io), but the click events seem too difficult to create. What did you have in mind for click handlers? Would that be an attribute also? Something like { onClick: ‘https://www.www.ads-software.com’ }
Also, beyond the ability to make this work, I doubt it would be good for User Experience, unless it was obvious to the user that clicking a shape would take them to a new page.
Forum: Plugins
In reply to: [Leaflet Map] Possible to link to map marker popup?Sorry for the late reply. This is very specific, and work intensive; so I would not be able to provide much help in terms of plugin development for you. Good luck! ??