Hi, You can add your image as a point feature on a vector layer using externalGraphic.
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL27/examples/ExternalGraphicOver lay/ExternalGraphicOverlay.asp The tricky part is to calculate the position and extent of the image if you zoom in or out. But that can be solved by using a styleMap with context. Arnd -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Atl Gesendet: Montag, 12. April 2010 15:32 An: [email protected] Betreff: [OpenLayers-Users] OpenLayer OSM, how do i rotate a picture? (and a good way to position it) Hey Im trying to place a picture (floorplan of a building) on top of OSM, but i run into some problems. - I need to rotate the picture - Find a good way to position the picture on top of the map. (im currently just placing the picture at a given coordinate). I think of something like upper left of picture has coordinates 0,0 (the start) and placed at 10.11111, 10.11212 and rotated 34 deg. But i dont find a good way to implement it this way. Or am i approaching the problem all wrong? Any tips, hints, hacks, code or reference is much welcome. thanks //Atl -- View this message in context: http://n2.nabble.com/OpenLayer-OSM-how-do-i-rotate-a-picture-and-a-good-way- to-position-it-tp4890040p4890040.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
