WordPress.org

Ready to get started?Download WordPress

Forums

Basic Google Maps Placemarks
[resolved] 1.10 View on Map issue (6 posts)

  1. MVerminski
    Member
    Posted 1 year ago #

    Hello again Ian.

    I've upgraded to 1.10 and have added the short code viewonmap="true" to my lists. My list is two different categories on the same page to split it up a little since there is 24 placemarks on the map.

    The issue is only the left row works. When you click' View on Map' on any of the items from the right list nothing happens.

    Here is a link if it helps diagnose the issue.
    http://clifford.promediaonline.com/locations

    http://wordpress.org/extend/plugins/basic-google-maps-placemarks/

  2. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    It works for me when I click on Alder Creek, Camden, and Chittenago; but not when I click on Orkanse, Oswago, or Rome.

    Are those last three included on the map? If not, then there's no way that they can popup, since they don't exist.

    If your map shortcode is only pulling in one category, then you should have the list shortcode do the same, so that the markers match up.

  3. MVerminski
    Member
    Posted 1 year ago #

    I know the left side works (Alder Creek, etc.) I can't figure out why the ones on the right don't work (Oriskany, etc).

    The map shortcode uses the categories gas and gas2

    The list on the left is categories="gas" and the one the right is categories="gas2"

    Both categories are showing up on the map, but the right column (gas2) doesn't work when you click View On Map.

    Here is the code:

    [bgmp-map categories="gas, gas2"]
    <table>
    <tr>
    <td align="center">
    [bgmp-list categories="gas" viewonmap="true"]
    </td>
    <td align="center">
    [bgmp-list categories="gas2" viewonmap="true"]
    </td>
    </tr>
    </table>
  4. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    Does it work if you disable Marker Clustering on the Settings page?

    When clustering is enabled, the markers set is converted into a different data structure to make it compatible with the clustering library, but I think that may break the mapping between the marker and the reference that the viewOnMap function is using to open it.

  5. MVerminski
    Member
    Posted 1 year ago #

    I don't have Marker Clustering enabled. I enabled it for the hell of it and View on Map still worked for the left column, even those inside a cluster. No change on the right column.

  6. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    I was able to reproduce this on my test site, and it turned out this was because the bgmp_list element was using an ID instead of a class, so it's not supposed to be placed on a page multiple times.

    The ID can't be removed because that would break backwards-compatability, but I added a class to it and updated all the internal references to use the class instead of the ID.

    That fixed the problem on my test test, and you can download 1.10-rc4 to test it on yours.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.