WordPress.org

Forums

Pronamic Google Maps
[resolved] Different icons in mashup (2 posts)

  1. Pepepro
    Member
    Posted 3 years ago #

    How can I display different icons on the mashup map based on the post category , or on custom fields?

    I tried this, but does not work:

    function prefix_pronamic_google_maps_marker_options_icon($url) {
    $tipo = get_post_meta(get_the_ID(), 'franquiciado', false);
    switch(get_post_meta(get_the_ID(), 'franquiciado', false)) {
    case 'post':
    $url = 'http://google-maps-icons.googlecode.com/files/seniorsite.png';
    break;
    case 'page':
    $url = 'http://google-maps-icons.googlecode.com/files/university.png';
    break;
    }
    return $url;
    }
    add_filter('pronamic_google_maps_marker_options_icon', 'prefix_pronamic_google_maps_marker_options_icon');

    thanks.

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

  2. Remco Tolsma
    Member
    Plugin Author

    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Pronamic Google Maps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic