Posted by viraj.kanwade on July 8, 2008 at 3:56am
| Project: | Mapping kit |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | viraj.kanwade |
| Status: | closed (fixed) |
Issue Summary
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.
| Attachment | Size |
|---|---|
| openlayers.mapclient.inc_.patch | 843 bytes |
Comments
#1
Sorry about the wrong patch. I generated it with different file orders.
Please find attached the new patch.
#2
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.
#3
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.
#4
#5
Automatically closed -- issue fixed for two weeks with no activity.