Re: [pmapper-users] Pmapper5: zoom to selected features
Brought to you by:
arminburger
From: gioza <al...@al...> - 2014-10-10 09:38:53
|
I figured out with a change to pm.map.js: add to line 162->166 the map.zoomOut() control in this way: FROM zoom2extent: function(layer, idx, extStr, zoomfull) { var ext = extStr.split(","); map.zoomToExtent( new OpenLayers.Bounds(ext[0], ext[1], ext[2], ext[3]), true ); }, TO zoom2extent: function(layer, idx, extStr, zoomfull) { var ext = extStr.split(","); map.zoomToExtent( new OpenLayers.Bounds(ext[0], ext[1], ext[2], ext[3]), true ); map.zoomOut(); }, As you select a features by "search tools" the zoomToextent will zoom out so that all the features you selected with the query are completely visible -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-zoom-to-selected-features-tp4025486p4025632.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. |