Say that again, I'm not sure exactly what you're after. Do you want to populate a map extent based on the properties of a particular feature?
Steve >>> Dmitri Mizerkin <[EMAIL PROTECTED]> 5/31/2006 10:54:28 AM >>> Dear all, I'm trying to solve a similar problem. My situation is like this: Say I have two layers on the map - "Achse" for showing all items and "Sel_Achse" only for selected ones. The map is shown in the browse-mode. I call the picture with the following line in the address-bar: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/Avenida/htdocs/Avenida.m ap&mode=browse&layer=Achse&layer=Sel_Achse&oid=11 , where "oid" is the ObjectID of the item to be shown in the "selected-item-layer". I have been playing with zooming for some time and got to the conclusion, that it is only possible to manipulate it adding 3 additional parameters (imgxy, imgext and zoom) to the address line. Here's a line implementing a 5x zoom to the centre of the map: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/Avenida/htdocs/Avenida.m ap&mode=browse&layer=Achse&layer=Sel_Achse&oid=11&imgxy=290+149.5&imgext=257 4985.815002+5646056.028076+2587295.900005+5655288.591828&zoom=5 Is it possible to get one of the parameters (imgxy or imgext) at run-time so that it would be possible to zoom to the right area of the map not waiting for a user-click? Is there any way to do that using mapxy=shape and mapext=shape instead? In this case, which parameter could identify the shape to zoom to? Many thanks in advance! ________________________________ Dmitri -----Ursprüngliche Nachricht----- Von: UMN MapServer Users List [mailto:[EMAIL PROTECTED] Im Auftrag von J. Parapar Gesendet: Dienstag, 30. Mai 2006 21:09 An: [email protected] Betreff: Re: [UMN_MAPSERVER-USERS] ZOOM TO A SELECTED OBJECT Hi Toni You can use the itemquery mode to select the municipality and the mapxy parameter to set the map extent, mapxy=shape set map extent to the extent of the selected shape. See also the buffer and scale parameters. Hope this helps. Best regards, Jorge 2006/5/30, toni hernández <[EMAIL PROTECTED]>: > Hi, > > I have a layer of municipalities boundaries (SHP file with polygons) > > How can I zoom to a municipality selected for the user from an HTML form? > Ex. Zoom to a municpality called "SALT". > > Maybe changing the map file dynamically? > I have been reading about filter and fitleritem but I do not see how can > make a zoom to a particular municpality. > > > > thanks >
