hi Thorsten, I hope you find useful this widget (ZoomToBoundingBox) I coded
some time ago. You have to modify the FeatureCollection model and the
Extent object a little (if it isn't yet, I don't know if the newest versions
has the modifications I made). In the example there is a search form which
zoom to the feature found based on the entered values.
here's the link to the post
http://www.mail-archive.com/[email protected]/msg00132.html
Adrián
On Feb 13, 2008 10:10 AM, Thorsten Stanitzok <[EMAIL PROTECTED]>
wrote:
> Hi again,
>
> first another question: At an early state of my experiments with the
> webserviceform-widget i tried to search for an input field called
> 'fieldId' and recongnized that this field never got passed to the
> stylesheet as parameter (empty) so i debugged the WebServiceForm.js and
> thought i found the problem: other fields than (dont get passed to the
> stylesheet and i added one line (starting at line 75 in WebServiceForm.js)
>
> <code>
> for (var i=0; i<this.webServiceForm.elements.length; ++i) {
> var element = this.webServiceForm.elements[i];
> this.formElements[element.name] = element.value;
>
> //Thorsten, inserted to pass stylesheet parameters automatically
> this.requestStylesheet.setParameter(element.name, element.value);
> }
> </code>
>
> and it works.
>
> But i still think that is not the recommended way to do this. Because
> the WebServiceForm looks to hardcoded (for me as a newbie) to perform a
> search like a want.
>
>
> I noticed that the searched feature gets highlighted now.
> If this is still the right way, what should i do to highlight the
> feature, or where should i have a look into to get more than result to
> choose for the user?
>
>
> Thorsten
>
> Thorsten Stanitzok schrieb:
> > I try to give the user of my mapbuilder the possibility to search for a
> > special feature (e.g the ID) and zoom to this feature directly. Later it
> > should be possible to search with wildcards to choose the feature from a
> > list.
> >
> > But im not really sure how to do sth. like this within the mapbuilder.
> > After looking at the examples, i thought i should give the
> > WebServiceForm like in the GeoBliki example a try. This, i think, is the
> > wrong way, but i dont want to loose much more time in finding the right
> > way, so i ask, what should i do?
> >
> > Is the WebServiceForm the right way to achieve my goal?
> >
> > Or is the way shown in the Building A Web App - tutorial by Brent Owens
> > [1] (Step 3 and 5) the way i have to go?
> >
> > Or exists another solution out there?
> >
> > I would be pleased to recieve some hints or links where i can look into.
> >
> >
> > I use Mapbuilder 1.5 RC1 and MapServer version 5.0.0.
> >
> > Thorsten
> >
> >
> > [1] http://communitymapbuilder.org/display/MAP/Building+A+Web+App
> >
> >
> -------------------------------------------------------------------------
> > 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/
> > _______________________________________________
> > Mapbuilder-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
>
>
> --
>
> Thorsten Stanitzok
> Hansa Luftbild Geoinformationssysteme GmbH
>
> Fon: +49 251 2330 171
> Fax: +49 251 2330 188
> [EMAIL PROTECTED]
> http://www.hansaluftbild.de
>
> GM: Dr. Joerg Dieter Grumblat, Andreas Werner
> UID: DE 209 087 844
> HRB: Münster 5717
>
> -------------------------------------------------------------------------
> 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/
> _______________________________________________
> Mapbuilder-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
>
--
Ing Adrián Demaestri
What face is the onion
-------------------------------------------------------------------------
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/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users