WordPress.org

Ready to get started?Download WordPress

Forums

Pronamic Google Maps
[resolved] Styling - Google Maps - v3 color options (2 posts)

  1. Remco Tolsma
    Member
    Plugin Author

    Posted 2 years ago #

    marc lorenz says on March 5, 2012 8:09 p.m.:

    hi,
    one question about your pronamic google maps wordpress plugin...
    is it possible to use v3 color options?
    as explained here:

    http://stackoverflow.com/questions/6588549/make-google-maps-plugin-black-white-or-with-sepia-filter

    thanks, marc

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

  2. Remco Tolsma
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, this is possible, an quick example for the mashup function:

    pronamic_google_maps_mashup(array(
    	'post_type' => 'post' ,
    	'posts_per_page' => -1
    ), array(
    	'width' => 500 ,
    	'height' => 800 ,
    	'map_options' => array(
    		'styles' => array(
    			(object) array(
    				'featureType' => 'water' ,
    				'stylers' => array(
    					(object) array('visibility' => 'on') ,
    					(object) array('hue' => '#ff0011')
    				)
    			)
    		)
    	)
    ));

    You only should convert the JSON notation to an PHP notation.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic