WordPress.org

Support

Support » Plugins and Hacks » Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps) » [Resolved] pushing markers from another db table

[Resolved] pushing markers from another db table

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author RobertHarm

    @harmr

    Hi,
    the problem is, that cf7 map field plugin is not compatible with Leaflet Maps Marker. I tried to find a way that both plugins can be used together, but unfortunately, cf7 map field is overwritting my javascript and causing my maps to break.
    regards,
    Robert

    the collision between the plugins is for an other discussion…
    for the sake of my question, plz forget i’ve mentioned cf7-map-field.

    assume i have a table in my db holding: name, description, lat & long.
    where and how should i hook into maps-marker in order to add all those entries as markers on a map.

    ??

    tnx.

    Plugin Author RobertHarm

    @harmr

    currently there is no hook you can use – i plan support for GeoJson in one of the next versions. For now you have to import your markers into wp_leafletmapsmarker_markers-table

    ok than… 2 questions:

    1) in case i save all my markers in that table: how do i show them all at once on the same map?

    2) what about changing the plugin code? there must an end-point function where you query the table to pull the markers. can you point me to it?

    Plugin Author RobertHarm

    @harmr

    ad 1: create a new layer map, enable “Multi-layer-map”-option and select “show all markers”-checkbox.

    ad 2) from v2.9 on (release in 2-3 days) this is done in inc/showmap.php – but might be a bit difficult to change that, as markers are also fetched in /leaflet-fullscreen.php, /leaflet-kml.php and other files, depending on the needed output.
    regards,
    Robert

    PS: as I give support for free, I´d appreciate a short review at http://wordpress.org/support/view/plugin-reviews/leaflet-maps-marker

    i have succeeded pushing my marker to wp_leafletmapsmarker_markers table.
    works great!
    tnx.

    @shemesh

    I’m exactly in the same place. I’ve been using your plugin and the CF7+db plugin. Now I wanna display markers from the db in the map.

    Can you pls tell me how you did that?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] pushing markers from another db table’ is closed to new replies.
Skip to toolbar