Re: [OpenLayers-Users] Markers with dymamically changing appearance

2010-08-11 Thread Guyren G Howe
On Aug 11, 2010, at 2:18 , Sveen Atle Frenvik (Geomatikk IKT) wrote: > var center = this.map.getLonLatFromPixel(new > OpenLayers.Pixel(centerPx.x,centerPx.y)); > var leftBottom = this.map.getLonLatFromPixel(new > OpenLayers.Pixel(centerPx.x-addX, centerPx.y+addY)); > var

Re: [OpenLayers-Users] Markers with dymamically changing appearance

2010-08-11 Thread Sveen Atle Frenvik (Geomatikk IKT)
Regarding the first question: i did something like this in order to create a rectangle of a given pixel size centered on a coordinate on the map (to make a print tool).. the relevant code parts are: first i set up some choices for paper sizes //the available paper sizes papers: {

Re: [OpenLayers-Users] Markers with dymamically changing appearance

2010-08-11 Thread Bart van den Eijnden (OSGIS)
Hi, please always cc the list, since I don't know all the answers and people with similar issues can find it in the e-mail archives later on. Your first question: I don't know. Redrawing can be done using: feature.layer.drawFeature(feature); http://dev.openlayers.org/docs/files/OpenLayers/Laye

Re: [OpenLayers-Users] Markers with dymamically changing appearance

2010-08-10 Thread Bart van den Eijnden (OSGIS)
Hi, have you considered using a vector layer with an externalGraphic instead? It should be fairly easy to change the appearance of that through the asscioated styles and redraw the features. Best regards, Bart > New to Openlayers. Great project, many thanks to all who put so much work > into cre

[OpenLayers-Users] Markers with dymamically changing appearance

2010-08-10 Thread Guyren Howe
New to Openlayers. Great project, many thanks to all who put so much work into creating and documenting it! What would be the idiomatic way to have the markers on my map with part of their appearance being dynamically generated and changeable? This is to display relative temporal information on