2amigos / egmap

Objet-oriented PHP abstraction to the Google Maps API to ease the process of adding a Google Map on your Yii projects.
14 stars 12 forks source link

scaledSize Support #14

Open aihowes opened 9 years ago

aihowes commented 9 years ago

Have added support for scaledSize, a google maps MarkerImage property used to rescale and show a marker image/icon at a different size. Mainly used for high pixel density images.

More info can be seen here in the documentation

Example use:

$icon = new EGMapMarkerImage("/images/marker-2x.png");
$icon->setScaledSize(48, 48);
$point = new EGMapMarkerWithLabel($this->lat, $this->lng, array('title' => $this->title, 'icon' => $icon), 'mapMarker' . $this->widgetInstanceId);
$gMap->addMarker($point);