Hi
What is the best documentation for interfacing Mapbuilder to other
systems? I have gotten some success by writing javascript (I am quite
allergic to XML) and trial-and-error.
El jue, 22-11-2007 a las 13:03 +0100, Albrecht Weiser escribió:
> Hi Cameron,
> i see you understand the problematic of my issue. I have an existing
> Java/JSP application and want mapbuilder to collaborate with my app.
> Maybe i have to expand the scope a bit:
> Mapbuilder works very fine as a simple mapviewer. You have an OGC
> WMC-document as model which contains all of the information a map
> needs to rendered - that's really good! But after all that's a static
> approach. For my problem i need more dynamic one: I want to add the
> WMS-Layers of a CS-W catalogue-search to the Map. therefore i need to
> 1. Bridge Metadata and Geodata
> 2. construct session-dependent WMC-Files for each user
> 3. reconfigure the WMC on the file system
> For these heavy duties i need a more mighty tool than JS.
> But you're right there are problems in bridging data between
> client-side scripting and server-side scripting. O.K. there are
> interfaces like rhino from mozilla, but they are very
> platform-dependent.
> Like i use mapbulder (as a visualization backend) i never had to
> exchange data until now, because the only "interface" was the WMC
> 'til now. But for a trimming-functionality of the WMC-layers i had to
> gather information of the checked layers from the legend widget. I
> tried to reach it with a JS-function, but got the problems like told
> above. Now i got a hint from Darren Graham how to get the
> attribute-information of the Layer-checkboxes. I think i can use them
> with JSP now too.
> Best regards
> Albrecht
>
> CS> Albrecht,
> CS> I understand that you are working with JSP. Mapbuilder is not tailored
> CS> to most JSP applications.
> CS> JSP usually stores its state data on the server, and renders HTML on the
> CS> server.
> CS> Mapbuilder stores state data and renders on the client. So if you are
> CS> marrying an existing JSP application to Mapbuilder, you will need to
> CS> work out a way to get state data from JSP to the client or visa-versa.
>
> CS> Andreas Hocevar wrote:
> >> Albrecht,
> >>
> >> I'm not sure if what you are requesting is really what you want. In
> >> Mapbuilder, every change you make in a widget will be written back to
> >> the underlying model. So the remaining question is: am I right that
> >> you want to know which layers are visible (=checked)?
> >>
> >> You would get this information by issuing the following statement,
> >> assuming that your map model has the id "mainMap":
> >>
> >> var layers = config.objects.mainMap.selectNodes("//wmc:[EMAIL
> >> PROTECTED]'0']|//wmc:[EMAIL PROTECTED]'0']");
> >> var name;
> >> for (var i=0; i<layers.length; i++) {
> >> name = getNodeValue(layers[i].selectSingleNode('wmc:Name'));
> >> // do something with the layer name
> >> }
> >>
> >> Regards,
> >> Andreas
> >>
> >> On Nov 21, 2007 4:33 PM, Albrecht Weiser <[EMAIL PROTECTED]> wrote:
> >>
> >>> Hi again,
> >>> i posted last time, but i think my question was too special.
> >>> Therefore now a new try with less requests: does anybody know, how to
> >>> reach the information about the checkboxes of the legend widget? I need
> >>> the info's about checked true or false and the name (or title) of the
> >>> checkbox. It would be nice if someone could help me, because i'm
> >>> really stuck with this problem.
> >>> Thanks
> >>> Albrecht
> >>>
> >>>
> >>> -------------------------------------------------------------------------
> >>> This SF.net email is sponsored by: Microsoft
> >>> Defy all challenges. Microsoft(R) Visual Studio 2005.
> >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >>> _______________________________________________
> >>> Mapbuilder-users mailing list
> >>> [email protected]
> >>> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
> >>>
> >>>
> >>
> >> -------------------------------------------------------------------------
> >> This SF.net email is sponsored by: Microsoft
> >> Defy all challenges. Microsoft(R) Visual Studio 2005.
> >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >> _______________________________________________
> >> Mapbuilder-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
> >>
> >>
>
>
>
>
> ____________________
> Albrecht Weiser
> mailto:[EMAIL PROTECTED]
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Mapbuilder-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users