We are adding quite a few locations to our install and after adding the
first batch our front page map ends up with quite a bit of overlap while we
have many more to add. It got me thinking if we could just make the
individual markers smaller it would work better for us. Looking into the
settings it seems there was an option for:
$config['frontpage']['map']['dotsize'] = 10;
Changing this seems to have no effect and a quick glance it does not seem
to be used anymore
Doing a little more digging in the code it looks like the
html/includes/map/leaflet.inc.php has options defined to add the svg icons
with static sizes with the following:
var icons = {
ok: L.icon({
iconUrl: 'images/svg/ok.svg',
popupAnchor: [0, 16],
iconSize: [24, 24] // size of the icon
}),
alert: L.icon({
iconUrl: 'images/svg/high_priority.svg',
popupAnchor: [0, 12],
iconSize: [32, 32] // size of the icon
}),
};
It seems just changing the values in iconSize: [X,Y] accomplishes what we
would like to do to make the marker size a bit smaller and the maps to be
more clear with many more sites added. Maybe 2 new example variables to
allow a little further map customization?
$config['frontpage']['map']['markeroksize'] = <value>;
$config['frontpage']['map']['markeralertsize'] = <value>;
Thanks,
Ed