Hello everyone,

this my very first post and I'm new to the whole OpenLayers thing.
Let me get to the point quickly...

I want to highlight buildings in an OpenLayers Map.
I already figured out a way how to do this by using a vectorLayer.
I create a linearRing which gets an array of Geometry.Points (representing
the coordinates of the building). Then I create a Feature.Vector (here
"polygonFeature") with this linearRing and do:
vectorLayer.addFeatures([polygonFeature]);

So far so good. But I asked myself why I have to use Geometry.Point and not
just simply LonLat coordinates?
My web-application on which I'm working is showing me a list of buildings.
When I click on an list-entry I get a LonLat-Array containing the 'vertices'
of the building. So now when I want to highlight my building by doing the
above mentioned I need to convert these LonLats into Geometry.Points. How am
I supposed to do that?
Maybe you could give me short overview how LonLat and Geometry.Points are
related to each other.
I just can't make a sense of it right now. Thanks already for your help. I
would appreciate a quick answer.

Best regards - Erik



-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/How-to-deal-with-Geometry-Point-and-lonlat-tp5956361p5956361.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to