Skip to content
This repository was archived by the owner on Jul 26, 2023. It is now read-only.

Conversation

@aihowes
Copy link

@aihowes aihowes commented Sep 18, 2015

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);

…to rescale and show a marker image/icon at a different size. Mainly used for high pixel density images.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant