[OpenLayers-Users] Label position on vector features

2009-08-07 Thread Joao Duarte
Hi list, Is there any way to position the label of a vector feature besides the labelAlign property? I have a vector feature which is a point having an externalGraphic and what I really would like to do is to specify an offset the label should have relative to the feature centroid. I

Re: [OpenLayers-Users] IE8 error when adding a vector layer

2009-03-20 Thread Joao Duarte
On Fri, Mar 20, 2009 at 10:32:30AM +, Joao Duarte wrote: Hi list, I was trying my OL app in IE8 and when I add a Vector Layer to the map, when the time comes to assign the VML renderer, I get an error on this line (in the VML constructor): style.addRule('olv\\:*', behavior: url

Re: [OpenLayers-Users] IE8 error when adding a vector layer

2009-03-20 Thread Joao Duarte
:32:30AM +, Joao Duarte wrote: Hi list, I was trying my OL app in IE8 and when I add a Vector Layer to the map, when the time comes to assign the VML renderer, I get an error on this line (in the VML constructor): style.addRule('olv\\:*', behavior: url(#default#VML); + position

Re: [OpenLayers-Users] Declare a default externalGraphic

2009-03-11 Thread Joao Duarte
In the end of the file OpenLayers.Feature.Vector you will find the default style for the features. Just add a externalGraphic entry with your default image or make a patch that does that. Hope it helps. João Duarte, http://mapas.sapo.pt -Original Message- From:

Re: [OpenLayers-Users] [OpenLayers-Dev] Pending tile requests in IE

2009-03-10 Thread Joao Duarte
for not creating a ticket, but I hope this helps! (And thanks to João Duarte for finding this in the first place!) Eirik -Original Message- From: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] On Behalf Of Andreas Hocevar Sent: Friday, March 06, 2009 6:06 PM To: Joao Duarte

[OpenLayers-Users] Pending tile requests in IE

2009-03-04 Thread Joao Duarte
Hi list, We have our OpenLayers application getting the tile images via WMS. We found that in IE, after several zooms/drags some tile requests were still pending, even that those images no longer existed in the map area. By looking at the code of the destroy method in

[OpenLayers-Users] Drag events on the map not firing

2009-02-26 Thread Joao Duarte
Hi list, I noticed that the drag events (dragstart, dragend, drag) are not being fired by the map, although they are documented as working. Is this a known issue? Another strange thing is the setCenter map method. It receives a Boolean dragging parameter which specifies if the

Re: [OpenLayers-Users] getCenter() in moveend handler problems

2009-02-09 Thread Joao Duarte
Hi, That is happening because you're probably modifying what's returned by map.getCenter(). It's a bug in OL 2.7 that the object returned by getCenter() is the same the map uses internally. So if you change it, you're changing the center of the map. To work you have to clone the result of

[OpenLayers-Users] Popup Property/Method

2009-01-30 Thread Joao Duarte
Hi, I have a Vector Layer with one marker. Also, I have a click handler for that marker to open a popup. Each time the popup is opened its content may be different, so I’m creating a new popup for each click, passing it the content to display. However I would like to only create the popup

Re: [OpenLayers-Users] How to implement draggable Markers?

2009-01-08 Thread Joao Duarte
Hi, Another option would be to have your markers rendered in a Vector layer (each marker would be a Feature). Example: Create the layer and add it to the map*** markersLayer = new OpenLayers.Layer.Vector(Markers, { projection: new

[OpenLayers-Users] dblclick notifications on Handler.Feature

2009-01-08 Thread Joao Duarte
( this, this.layer, this.callbacks ) }; I only get notifications for the click event. Only if I remove the click listener I start receiving the dblclick event. Is there any way that I can be notified of double clicks? Best regards, Joao Duarte

Re: [OpenLayers-Users] Cluster strategy on markers

2008-12-22 Thread Joao Duarte
Hi, Thanks all for the fast replies! I tried you suggestion of using Vector layers to display markers and it worked perfectly. Also the shadows are great. After having all of my markers on a Vector layer, the Cluster strategy worked. Thanks again. Regards, Joao Duarte http://mapas.sapo.pt

[OpenLayers-Users] 3 questions

2008-12-19 Thread Joao Duarte
Hello, I’ve recently started using OpenLayers and I have 3 questions: 1. I’ve been using the “resize” transition effect on my base layer. However the effect doesn’t occur in every zoom in/out. Am I missing something or the transition effect still has some issues? 2. A have

[OpenLayers-Users] 3 questions

2008-12-19 Thread Joao Duarte
Hello, I’ve recently started using OpenLayers and I have 3 questions: 1. I’ve been using the “resize” transition effect on my base layer. However the effect doesn’t occur in every zoom in/out. Am I missing something or the transition effect still has some issues? 2. A have

[OpenLayers-Users] Cluster strategy on markers

2008-12-19 Thread Joao Duarte
Hi, It seems I’ve been spamming the list. I’m sorry about that but there were some problems with my mail server. I have a doubt about clustering. Is there any form of having marker clustering. I’ve successful used the cluster strategy on Vector type layers but that strategt can’t be