[OpenLayers-Users] OpenLayer OSM, how do i rotate a picture? (and a good way to position it)

Arnd Wippermann arnd.wippermann at web.de
Mon Apr 12 12:40:17 EDT 2010


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: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Atl
Gesendet: Montag, 12. April 2010 15:32
An: users at openlayers.org
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
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list