Hello Armin,
thanks for information.
I have used the function but I have a problem when the features don't exist
and the application is locked because it doesn't manage to calculate the
extension.
I have find a solution changing the function
function getMapInitURL($map, $zoomLayer, $zoomQuery)
I have added
if ( $numResults == 0){
// set initial max/min values with the value of the map
$initExtent2 = ms_newrectObj();
$initExtent2 = $this->map->extent;
$mExtMinx =$initExtent2->minx;
$mExtMiny =$initExtent2->miny;
$mExtMaxx =$initExtent2->maxx;
$mExtMaxy =$initExtent2->maxy;
} else {
// initial max/min values
$mExtMinx = 999999999;
$mExtMiny = 999999999;
$mExtMaxx = -999999999;
$mExtMaxy = -999999999;
}
In my opinion, this addition could be useful also in other cases and
I suggest to add it in the next release.
Thanks in advance
Leonardo
-----Messaggio originale-----
Da: Armin Burger [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 8 ottobre 2008 11.26
A: Leonardo L.O. Olivieri
Cc: [email protected]
Oggetto: Re: [pmapper-users] R: zoom to features from external application
all you need is to modify the function 'getMapInitURL()' in
init/initmap.php to perform the query you need.
For zooming to 2 countries you might be able to specify the full
Mapserver query string in the URL with the default setting, but you
need to know how to compose the query string, could be something like
'[NAME]'='Italy' OR '[NAME]'='Spain'
one might need to encode some characters, never tried though.
maybe you can do the same with 2 fields included, just read the MS
docs about expressions/filters and try it, and check the PHP (and or
JS) error log if it does not work.
armin
On Wed, Oct 8, 2008 at 10:42 AM, Leonardo L.O. Olivieri
<[EMAIL PROTECTED]> wrote:
> Thanks for answer:
>
> I have other questions:
>
> 1) Is it possible to zoom on two countries ( ex Italy and Spain)?
> 2 ) is it possible to zoom on a country like Italy and a city like Madrid( in
> other terms to zoom on features of two different layers)?
>
> Thanks in advance
> Leonardo
>
>
>
> -----Messaggio originale-----
> Da: Ivan Mincik [mailto:[EMAIL PROTECTED]
> Inviato: venerdì 26 settembre 2008 12.12
> A: [email protected]
> Oggetto: Re: [pmapper-users] zoom to features from external application
>
> In the pmapper's Live Demos page there is an example "Extent from feature
> (countries, Italy), Italian".
> You can use &zoomLayer=countries&[EMAIL PROTECTED]@[EMAIL PROTECTED]@1
>
> Ivan
>
> On Friday 26 September 2008 11:39, Leonardo L.O. Olivieri wrote:
>> Hello,
>>
>>
>>
>> I have a database with river information and I have an application web
>> used for browser database.
>>
>>
>>
>> >From this application i want zoom and highlight one or more features(
>> using a shared key)
>>
>> on the shapefile (with river) used in pmapper.
>>
>>
>>
>> Is it possible?
>>
>>
>>
>> Thanks in advance
>>
>> Leonardo
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> pmapper-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>
>
> --
> Mgr. Ivan Minčík
> Gista s.r.o
> tel:. 0907 639 570
> email: [EMAIL PROTECTED]
> http://www.gista.sk, http://demo.gisplan.sk
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> pmapper-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> pmapper-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users