Support » Plugin: Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps) » [Plugin: Leaflet Maps Marker] Added a Layer – Markers not showing
The marker show up as assigned to the layer, but they don’t appear on the map… am I missing something here? BTW, awesome work on the plugin!
First you have to create a layer, then create a marker and assign it to the layer. Then insert the shortcode in the post or page where you want the map to appear (e.g. by adding [mapsmarker layer=”1″] )
Please note, that for layers the layer center also has to be set. Default layer center is Vienna/Austria. If you add e.g. a marker in New York, the layer also has to be set to New York to show the assigned marker.
Hope this helps.
BTW: if you like the plugin, I´d very much appreciate a rating on WordPress.org 😉
Wow! Thanks for the quick response! I will rate you for sure! When the project rolls, we’ll be sure to donate too!
One more quick question. Is it possible to have other layers or collection of markers to hide/show on a given layer? Is there a way to dynamically add and remove markers from a layer by using a query?
Concerning your question about mass action (like deleting more layers at once or removing them from a layer): this is planned for a future release for the backend. If you use phpmyadmin you can always directly edit more markers at once with SQL statements. The following statement for example will unassign all markers from layer ID 1 to layer ID 0 (= invisible layer containing all unassigned markers):
UPDATE wp_leafletmapsmarker_markers SET layer = 0 WHERE layer = 1
When you want to delete all markers from layer ID 0 instead of assigning any layer to these markers, you can do this on the layer edit screen by pressing the button “Delete layer AND all assigned markers” or use the following SQL statement:
DELETE FROM wp_leafletmapsmarker_markers WHERE layer = 1
BTW: can you please tell me which plugin caused a conflict? I would like to check if there´s anything I can do to prevent this automatically. Normally there shouldnt be any function conflicts for example as my plugin uses unique function names…
Google Analytics for WordPress caused a conflict.
Awesome plugin Robert!
Oh, didn’t mean to leave you hanging! The plugin conflict is nothing to worry about. Turned out to be a “custom job” plugin that is not publicly available. I got the map going… if you want to check it out (still a work in progress) http://dev.metrodeliverypool.com/map/ Great plugin!!!
Ad plugin conflict with Google Analytics: I took a look into Google Analytics files but didnt find out, why my plugin is not working if Google Analytics plugin is also active.
So I wrote a new post in the support forum – I hope that the plugin author Yoast can help.
If anyone else has an idea what I could to solve this problem, please let me know!
just released v1.2 which fixes the conflict with Google Analytics for WordPress
Unfortunetly the conflict is not resolved, Robert. Or it is back.
I am using v1.9 and I had the same problem. However, deactivating the Google Analytics plugin solved the problem and made the markers appearing.
Beside from that: Great job! 🙂
are you sure that GA for WordPress v4.2.4 from Joost is causing this error? I use this version out of the box on one of my test sites and maps do show up with v1.9. Did you make any special configuration?
BTW: it would be great if you could vote for the plugin on WordPress.org 😉
Oh, okay… I am using the plugin from Aaron D. Campbell:
I will definitely check for the voting!
puh – thankfully not this bug again 🙂
can you give me the link to your plugin so that I can check if i can fix this incompability on my side or have to contact the author.
thanks (also for the voting 😉
- The topic ‘[Plugin: Leaflet Maps Marker] Added a Layer – Markers not showing’ is closed to new replies.