Closed gidaban closed 5 years ago
Hi,
An icon can be sized in a few ways, the first is by scale, using the following options:
Mapper::informationWindow($map->latitude, $map->longitude, $map->title,
[
'maxWidth' => 300,
'title' => $map->title,
'icon' => [
'url' => '/' . $map->category->icon->path,
'size' => 10
]
]
);
The second is by x/y scale, using the following options:
Mapper::informationWindow($map->latitude, $map->longitude, $map->title,
[
'maxWidth' => 300,
'title' => $map->title,
'icon' => [
'url' => '/' . $map->category->icon->path,
'size' => [10, 5]
]
]
);
Thanks :)
Hello guys,
So far everything working fine except size of my SVG icon.
my code:
Icon is visible but is to large i need to make smaller. Any ideas how i can scale ?