WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. 101622
    Member
    Posted 1 year 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 1 year ago #

  3. 101622
    Member
    Posted 1 year 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 1 year 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' ),
    )
    ),
    )
    )
    ));
    }

    ?>`

  5. lagrafica
    Member
    Posted 10 months ago #

    Hey 101622, I'm trying to solve the same problem. Can you share where you inserted the code and other details that may be helpful for others. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic