[OpenLayers-Users] Dynamically add vector layer from database

Arnd Wippermann arnd.wippermann at web.de
Sat Sep 5 08:24:08 EDT 2009


Hi,

Why do you not put all your points in one geojson- or gml-file and send this
to the client. Then you need only one request and OpenLayers can add the
points in one step to your vector layer.

Arnd 

-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von frknml
Gesendet: Samstag, 5. September 2009 10:14
An: users at openlayers.org
Betreff: [OpenLayers-Users] Dynamically add vector layer from database



 Hi everybody;

I'm new for openlayers and i need your helps.My problem is i have to add
vector layer which filled with points which comes from database .What is
your suggestions how can i get data from database and create a
vectorlayer?One way is making an ajax request to my servlet and servlet
returns datas as json or xml format to my client side and adding this points
one by one to my vector layer, this is an inefficient way please show me the
possible way or ways.

Faruk Namlı
--
View this message in context:
http://n2.nabble.com/Dynamically-add-vector-layer-from-database-tp3584364p35
84364.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list