I khow but it doesn't work for "selected features" using the search tool
--
View this message in context:
http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-zoom-to-selected-features-tp4025486p4025637.html
Sent from the pmapper-users -- p.mapper users mailing list ma
an even better solution is to use the config parameters
and adapt them to the coordinate system used for your map and typical
scales used for tour application...
On 10/10/2014 09:06 PM, gioza wrote:
> a much better solution for my work is to modify pm.map.js in this way:
>
> line 162
>
according to your project extension you have to set the coefficent which
adjust the extent of the selected features:
var minx = (ext[0]**0.*);
var miny = (ext[1]**0.*);
var maxx = (ext[2]**1.000*1);
var maxy = (ext[3]**1.0001*);
--
View th
a much better solution for my work is to modify pm.map.js in this way:
line 162
zoom2extent: function(layer, idx, extStr, zoomfull) {
var ext = extStr.split(",");
var minx = (ext[0]*0.9995);
var miny = (ext[1]*0.9995);
var
for better performance add PM.Map.clearHighlight in pm.query.js in this way:
after line 81
execute: function(queryUrl, queryParams) {
PM.Map.clearHighlight();
var self = this;
...
--
View this message in context:
http://pmapper-users-p-mapper-users-mailing-list.993774.n3.na
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 );
Hi,
in pmapper5 using the search box or select by shape, have any of you
realised that the function "zoom to selected features" doesn't display the
complete extent of selected items?
--
View this message in context:
http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5