The current OpenLayers module inside the MappingKit only supports extent and maxExtent. It does not support restrictedExtent which allows for restricting the map to be panned beyond a certain limit.

I have created a patch for the same.

Please review.

Comments

viraj.kanwade’s picture

StatusFileSize
new843 bytes

Sorry about the wrong patch. I generated it with different file orders.

Please find attached the new patch.

viraj.kanwade’s picture

Title: No interface for restrictedExtent feature of OpenLayers » OpenLayers: restrictedExtent option for maps, interface for passing options for layers
Priority: Normal » Critical
StatusFileSize
new7.07 KB

I have created a patch to allow restrictedExtent parameter for maps.
Also, provided an interface to pass options for layers.

Here is a sample.

[map baselayers="google-physical,opacity=0.8,MIN_ZOOM_LEVEL=5;google,opacity=0.8,MIN_ZOOM_LEVEL=5" center="82,23" width="800" height="800" restrictedextent="65,5,100,40"/]

Please find the patch attached.

jpulles’s picture

StatusFileSize
new10.83 KB

Thank you, Viraj. Most of your patch is applied with only minor changes like removing tabs, some code changes, and making the separators configurable on the map client admin page.

jpulles’s picture

Priority: Critical » Normal
Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.