[OpenLayers-Users] Mapping areas from database

Dash jimlug at co.clackamas.or.us
Tue Dec 29 20:02:18 EST 2009


Here is a good document that helped me populate popup boxes using a wms.  My
data sites in a PostgreSQL database.

http://trac.openlayers.org/wiki/GetFeatureInfo

Hope this helps...


jtrsmith wrote:
> 
> I am new to openlayers, so please excuse my lack of knowledge here.
> 
> I have set up a map of my college campus in openlayers and would like  
> to add some functionality to it.
> 
> What I am looking to do is have locations ( prefferably rectangular
> polygon areas ) set up that when clicked will open a popup and show a  
> photograph of the location. I have a database set up in SQL with the  
> names, locations, and photographs. I am just not sure how to get the  
> information to show on my map.
> 
> I did look at the examples, some of them help, but I am still unsure
> how I can use the database information on my map. I have added a popup  
> to my map using the example in select-feature-openpopup, however I am  
> unable to add multiple locations with different information. Should I  
> be using an XML document to populate my map? How would I set up  
> openlayers to get that information?
> 
> Sorry for the long post, can anyone point me in the right direction?
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/Mapping-areas-from-database-tp4208682p4230350.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list