Forums

Pronamic Google Maps
[resolved] Style map colors (4 posts)

  1. 101622
    Member
    Posted 3 months ago #

    Hi,
    I was wondering if something like the map used on this page can be use achieved using this plugin, it would be great if was.

    Can someone explain me how to it?

    Thanks in advance.

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

  2. Remco Tolsma
    Member
    Plugin Author

    Posted 3 months ago #

  3. 101622
    Member
    Posted 3 months ago #

    Great!

    But where do I have to insert that code and what I have to do to make it work, I tried adding the code of your example to test it out and I'm unable to make it work, it just makes another new map in the pages.

    Sorry for the questions, I'm just learning :)

  4. 101622
    Member
    Posted 3 months ago #

    Ha! don't bother just worked out the code, and works fantastic. ;^)

    I leave it here if someone needs it to:

    `<?php

    if(function_exists('pronamic_google_maps')) {
    pronamic_google_maps(array(
    'width' => 500 ,
    'height' => 500 ,
    'map_options' => array(
    // https://developers.google.com/maps/documentation/javascript/styling
    // http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html
    'styles' => array(
    (object) array(
    'featureType' => 'landscape',
    'elementType' => 'all',
    'stylers' => array(
    (object) array( 'hue' => '#ffff00' ),
    (object) array( 'visibility' => 'simplified' ),
    )
    ),
    (object) array(
    'featureType' => 'road',
    'elementType' => 'geometry',
    'stylers' => array(
    (object) array( 'hue' => '#ff0000' ),
    (object) array( 'visibility' => 'on' ),
    )
    ),
    )
    )
    ));
    }

    ?>`

Reply

You must log in to post.

About this Plugin

About this Topic