The answer is yes, OpenLayers does support adding arbitrary attributes to points. You should be looking at OpenLayers.Feature.Vector.
A point geometry doesn't have direction. A feature is geometry plus attributes. If you create a feature with a point geometry, you can store any arbitrary attributes along with it. Hope that makes sense. Tim Stephen Woodbridge wrote: > Erik, > > I can think of a few use cases that would fit OpenLayers for this feature: > > 1) photo with direction of camera indicated as Tom mentioned. > 2) GPS tracking, showing a vehicle symbol with the orientation of the > symbol aligned to the direction of travel > 3) animating a car driving over a route and keeping it oriented to the road > 4) Showing symbols for wind force and direction, these need to be > oriented with the direction of the wind and might be served via WFS. > Currently there are some mapserver users doing this in mapserver, but > they might want a more interactive model to work with. > > These are just few that come to mind off the top of my head, I'm sure > there are others, so don't discount this feature too fast. > > -Steve W. > > Erik Uzureau wrote: >> Hi Tom, >> >> The feature you're suggesting doesn't sounds like something that would >> fit the general use case for OpenLayers, but as you say in the end of >> your mail, it would be *very* simple to add that functionality by >> extending the Point class. >> >> Let us know if you need help doing that. >> >> Erik >> >> >> >> On 7/11/07, Tom (JDi Solutions) <[EMAIL PROTECTED]> wrote: >>> All, >>> >>> The docs appear to show that Geometry.Point ( >>> http://dev.openlayers.org/docs/OpenLayers/Geometry/Point.html) >>> only supports a basic x and y with no direction. I ask because we're going >>> to be implementing an image library which could include the location from >>> which the image was taken and also the direction the camera was facing (2d >>> only!) >>> >>> If this feature does not already exist is there any call for it? It's not >>> an urgent requirement for us but I guess it could be done fairly easily by >>> extending the Point class? >>> >>> regards, >>> >>> Tom >>> >>> _______________________________________________ >>> Users mailing list >>> [email protected] >>> http://openlayers.org/mailman/listinfo/users >>> >>> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://openlayers.org/mailman/listinfo/users > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
