Open robibrazze opened 6 years ago
Can you provide some URL and configuration ? Thanks
I invite you to define a larger max scale. You defined the max scale to 70000, but this scale is to small to covering the extent you defined.
Ok, now the max scale is 100000, but I would like the map to be blocked at the viewing limits http://94.130.187.94/webgis/index.php/view/map/?repository=repo1&project=fontanili1
We have made the restrictedExtent olarger than the mapExtent to easily explore the limit of the map. If you want to have that the restrictedExtent is the same as the mapExtent, you can use your one JavaScript file to do it. https://docs.3liz.com/en/publish/advanced_lizmap_config.html#adding-your-own-javascript
lizMap.events.on({
uicreated: function(e) {
lizMap.map.restrictedExtent = lizMap.map.maxExtent;
}
});
I've send this piece of script to this repo: https://github.com/3liz/lizmap-javascript-scripts
Waiting for acceptance of PR https://github.com/3liz/lizmap-javascript-scripts/pull/83
I setting in box initial map extent "set from project properties" but in the webmap it is possible move the background' map out of the setting. I tried setting "set from map canvas" but it is the same.
Tanks