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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | baselayer-options.patch | 10.83 KB | jpulles |
| #2 | openlayers.mapclient.inc_.patch | 7.07 KB | viraj.kanwade |
| #1 | openlayers.mapclient.inc_.patch | 843 bytes | viraj.kanwade |
| openlayers.mapclient.inc_.patch | 843 bytes | viraj.kanwade |
Comments
Comment #1
viraj.kanwade commentedSorry about the wrong patch. I generated it with different file orders.
Please find attached the new patch.
Comment #2
viraj.kanwade commentedI 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.
Comment #3
jpulles commentedThank 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.
Comment #4
jpulles commentedComment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.