WordPress.org

Ready to get started?Download WordPress

Forums

Pronamic Google Maps
[resolved] PGM Mashup: Marker Priority (z-index) (4 posts)

  1. ZmeiKorifei
    Member
    Posted 1 year ago #

    Hey there,

    I'm using the PGM plugin to render a Google Maps Geo Mashup including different content types with associated addresses. Is there any way I can tweak the code in order to add priority (z-index) to the markers?

    I have a custom field for featured locations and I just want to make sure the markers of that locations will go at the top of the others.

    Hope that makes sense.

    Thanks in advance!

    http://wordpress.org/extend/plugins/pronamic-google-maps/

  2. Remco Tolsma
    Member
    Plugin Author

    Posted 1 year ago #

    MAX_ZINDEX The maximum default z-index that the API will assign to a marker. You may set a higher z-index to bring a marker to the front.

    You can specify the 'z-index' in the marker options:

    https://developers.google.com/maps/documentation/javascript/reference#MarkerOptions

    I didn't test it, but i made an example:
    https://github.com/pronamic/wp-pronamic-google-maps/blob/master/examples/mashup-z-index-marker.php

    See also:

    google.maps.version
    "3.5.2a"
    google.maps.Marker.MAX_ZINDEX
    1000000

    http://wordpress.org/support/view/plugin-reviews/pronamic-google-maps?filter=5

  3. ZmeiKorifei
    Member
    Posted 1 year ago #

    Thanks!

  4. ZmeiKorifei
    Member
    Posted 1 year ago #

    Btw, do you have a list with all shortcodes and attributes available?

    For example I'm trying to enable the center_client_location option and so far I'm failing to find any relevant info.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic