Download & Extend

OpenLayers: restrictedExtent option for maps, interface for passing options for layers

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.

AttachmentSize
openlayers.mapclient.inc_.patch843 bytes

Comments

#1

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

Please find attached the new patch.

AttachmentSize
openlayers.mapclient.inc_.patch 843 bytes

#2

Title:No interface for restrictedExtent feature of OpenLayers» OpenLayers: restrictedExtent option for maps, interface for passing options for layers
Priority:normal» critical

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.

AttachmentSize
openlayers.mapclient.inc_.patch 7.07 KB

#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.

AttachmentSize
baselayer-options.patch 10.83 KB

#4

Priority:critical» normal
Status:needs review» fixed

#5

Status:fixed» closed (fixed)

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