A widget that quickly produces Google Static Maps.
Handles most features of the Static Maps API, with the exception of polylines
protected/components/widgetsSee the following code example:
$this->widget('application.components.widgets.WGoogleStaticMap',array( 'center'=>'52.3214,2.34403', // Or you can use text eg. Dundee, Scotland 'alt'=>"Map for location of something", // Alt text for image (optional) 'zoom'=>0, // Google map zoom level 'width'=>250, // image width 'height'=>250, // image Height 'markers'=>array( array( 'style'=>array('color'=>'green'), 'locations'=>array('Dundee, UK','Sydney, Australia'), // Or use lat/long pairs ), array( 'style'=>array('color'=>'blue','label'=>'X'), 'locations'=>array('52.433432,-100.34322'), ), ), 'linkUrl'=>array('location/view'), // Where the image should link (optional) 'linkOptions'=>array('target'=>'_blank'), // HTML options for link tag (optional) 'imageOptions'=>array('class'=>'map-image'), // HTML options for img tag (optional) ));
See Google Static Maps API documentation for more information.
Total 2 comments
Great widget with swift support from the developer. Thumbs up!
Very good and useful widget.
Leave a comment
Please login to leave your comment.