incubator-baremaps
incubator-baremaps copied to clipboard
[BUG] When the zoom level is set in `baseMap`, it is automatically converted to an integer.
Description
If you set minZoom or 'maxZoom' to a float value like 2.5, it will automatically be converted to 2.
{
minzoom: 2.5,
maxzoom: 20,
sql:
"SELECT id, tags, geom " +
"FROM osm_boundary " +
"WHERE tags ->> 'admin_level' = '2' " +
"AND tags ->> 'maritime' = 'yes';",
}
Environment
- Browser/Version: chrome
- Version: 0.8.1
Expected vs Actual Behavior
- Expected: Setting
minZoomto 2.5 should apply it when the zoom level is2.5or higher. - Actual: However, it actually applies when
minZoomis2.0or higher.
Attachments (Optional)
Maritime boundaries should be applied from zoom level 2.5 and above, but they can be seen applying from 2.0.