On 28/01/2008 14:44, Walter Lorenzetti wrote:
> Hi list hi Armin,
> 
> I'm working on pmapper 3.2 beta4 and I found that
> the new zoom to selected button work only on quering mode select action

yes, that's what ZoomToSelected normally does, it zooms to the selected
elements ;-). This means that one needs first selections, created with
the select tool. This button functionality was just added for
convenience in some cases, and it was implemented quite simply. In most
applications probably not needed anyway.


> for to work also with identify function I put in zoom2extent function
> PMap.extentSelectedFeatures inside
> 
> } else {
>         var layerstring = '&resultlayer='+layer+'+'+idx;     // yes
>         PMap.extentSelectedFeatures = geoextent;
>     }
> 
> I hope this can help

this means every click on a zoomto image (the magnifier) is treated as a
selection and modifies the PMap.extentSelectedFeatures variable. And
hence overwrites the extent value of the still selected features. This
is how I would interpret it (correct me if I'm wrong) and that's why I
don't see this as a very consistent behaviour. But one can customize
this function like that if needed and wanted.

But also in the current version there was a bug that caused exactly this
overwriting of extentSelectedFeatures when applying an identify. I
modified the pmjson.js->returnZoomParamsHtml() to avoid this. Committed
to SVN.

Armin




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to