[geojquery] If the map would be a DOM object
Christoph Baudson (Wheregroup)
christoph.baudson at wheregroup.com
Mon Mar 22 03:23:59 EDT 2010
Volker Mische schrieb:
> Hi,
>
> I just had a crazy idea, and before I wake up tomorrow and think it's
> not worth mentioning it, I just drop this mail. Here it is: what most
> people like about jQuery is the way how easy the interaction with DOM
> got with it. So how would a map look like if it would be a DOM object
> and how would you interact with it?
>
> You would use selectors to get the objects, e.g.:
> // hide the layer with id bluemarble
> Map('layer#bluemarble').hide();
> // hide all WMS layers, but still show WFS layers
> Map('layer.wms').hide();
> // assign an onclick event to all features to the layer with id states
> Map('layer#states features').onclick();
> // add a new layer (append is only an example,
> // better method names could be used
> Map.append("layer", {type: 'WMS, url: '', ...}).
> // Filtering features
> Map(layer#states features).filter();
>
> This was only a quick brainstorm. I need to think about it more
> thoroughly the next days, but you might have already opinions about it.
>
How about using custom selectors in the jQuery function (with the ":"
notation) in this approach instead?
Christoph
P.S. Brainstorming is a perfect way of starting this project, keep your
ideas coming!
> Cheers,
> Volker
> _______________________________________________
> Geojquery mailing list
> Geojquery at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geojquery
>
--
----------------------------------
Aufwind durch Wissen!
Qualifizierte OpenSource-Schulungen
bei der www.foss-academy.eu
----------------------------------
_______________________________________
W h e r e G r o u p GmbH & Co. KG
Siemensstraße 8
53121 Bonn
Germany
Christoph Baudson
Anwendungsentwickler
Fon: +49 (0)228 / 90 90 38 - 15
Fax: +49 (0)228 / 90 90 38 - 11
christoph.baudson at wheregroup.com
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
_______________________________________
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
_______________________________________
More information about the Geojquery
mailing list