Support » Plugins and Hacks » Pronamic Google Maps (mashup) – different icons

  • Hello everyone,
    I’m making a website cataloging touristic attractions in my area.
    I used the Pronamic Google Maps plugin with “mashup” code to display a map of all posts.

    #<?php
    # pronamic_google_maps_mashup(
    # array(
    # ‘post_type’ => ‘post’
    # ) ,
    # array(
    # ‘width’ => 960 ,
    # ‘height’ => 650 ,
    # ‘map_type_id’ => ‘roadmap’ ,
    # ‘marker_options’ => array(
    # ‘icon’=> ‘http://myserver.pl/photo/icon.png’
    # )
    # )
    # );
    #?>

    Works perfect, but I would like to make it display different icon .png file, acording what the category of the post if.

    For example: post category is “castle” —-> the icon file will be “castle.png”

    Sounds trivial, but I can’t solve that.
    Will you help me? Pls.
    Zew

Viewing 1 replies (of 1 total)
  • OK, different approach,

    What is the name o post category variable?
    I mean – the variable that contains category of the post currently displayed?

    Best,
    Zew

Viewing 1 replies (of 1 total)
  • The topic ‘Pronamic Google Maps (mashup) – different icons’ is closed to new replies.