[OpenLayers-Users] Dynamic display line follow line route

2009-07-17 Thread shane_china
I have a multiline vector. I want to dynamic showing this line. Start from one side point then become longer and longer with dynamic effect until reach the end point, like the action drawing this line using pen on map. Please tell me if who knows how to achieve this effect, thank you! -- View thi

Re: [OpenLayers-Users] Problems with WMS server

2009-07-17 Thread Trond Michelsen
On Fri, Jul 17, 2009 at 01:03:42PM -0400, Ian Turton wrote: > On Fri, Jul 17, 2009 at 12:29 PM, Trond > Michelsen wrote: >> Table 1: >> Char  Reserved Usage >>  ?   Separator indicating start of query string. >>  &   Separator between parameters in query string. >>  =   Separator between name and v

Re: [OpenLayers-Users] help with vector(circle)

2009-07-17 Thread Arnd Wippermann
Hi, The circles you are seeing are symbols for the point features and no map objects. You have to use OpenLayers regularpolygon to draw a circle. Arnd _ Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im Auftrag von Valeria Muñoz Gesendet: Freitag, 17. Juli 20

[OpenLayers-Users] map centers correctly when not in lightbox.

2009-07-17 Thread Eric Mckenna
Hello All, I'm displaying the same map details in two different ways. One is on a simple webpage, this one works flawless. http://skitch.com/emackn/b2nhq/map-on-simple-page The issues occurs when I put my map into a jquery tools overlay, http://flowplayer.org/tools/overlay.html. When displayed

[OpenLayers-Users] help with vector(circle)

2009-07-17 Thread Valeria Muñoz
Hi i have a problem with vector, i draw a point(circle) in my map with this code: var style_blue = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']); style_blue.strokeColor = linea_color; style_blue.fillColor = color; if(opc>0) style_blue.fillOpacity=opc; els

Re: [OpenLayers-Users] Problems with WMS server

2009-07-17 Thread Christopher Schmidt
On Fri, Jul 17, 2009 at 01:03:42PM -0400, Ian Turton wrote: > Well spotted I'd only looked as far as the first paragraph. > > So the answer is to file a bug report against OpenLayers :-) That's not a solution. A solution would be to: * File a bug report * Attach a patch * motivate a developer

Re: [OpenLayers-Users] Problems with WMS server

2009-07-17 Thread Ian Turton
On Fri, Jul 17, 2009 at 12:29 PM, Trond Michelsen wrote: > On Fri, Jul 17, 2009 at 11:51:03AM -0400, Ian Turton wrote: >> On Fri, Jul 17, 2009 at 11:35 AM, Camilo Vargas wrote: >>> And I got the image. Basically, from this I concluded that the problem is >>> with the "%2F" generated by openlayers i

[OpenLayers-Users] Display popup for GeoRSS markers

2009-07-17 Thread Axel Müller
Hi, When a marker of a GeoRSS layer is clicked a popup is displayed. I would like to display the popup right after the layer has been created (no click). There is no example (at least I did find it) the answered my question. I looked at the Layer.GeoRSS code but still don't have a clue (I'm a JS

Re: [OpenLayers-Users] Problems with WMS server

2009-07-17 Thread Trond Michelsen
On Fri, Jul 17, 2009 at 11:51:03AM -0400, Ian Turton wrote: > On Fri, Jul 17, 2009 at 11:35 AM, Camilo Vargas wrote: >> And I got the image. Basically, from this I concluded that the problem is >> with the "%2F" generated by openlayers instead of the "/" and the same with >> the "%3A" instead of ":

[OpenLayers-Users] Default 'delete' style

2009-07-17 Thread Alexandre Dube
Hi, I see that the defaultStyle of the delete renderIntent is display:none. Is there a reason for this ? I find it strange that 'features that are about to be deleted' become invisible. Thanks, -- Alexandre Dubé Mapgears www.mapgears.com ___ Us

Re: [OpenLayers-Users] Problems with WMS server

2009-07-17 Thread Ian Turton
On Fri, Jul 17, 2009 at 11:35 AM, Camilo Vargas wrote: > Hello; > > I'm trying to acces a WMS which doesn't support format: image/jpeg with the > followin javascript ... > > http://server/?LAYERS=OLA_Color&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2F

[OpenLayers-Users] Problems with WMS server

2009-07-17 Thread Camilo Vargas
Hello; I'm trying to acces a WMS which doesn't support format: image/jpeg with the followin javascript var map; function init(){ map = new OpenLayers.Map('map'); var wms = new OpenLayers.Layer.WMS("Map", "http://server/?";, { layers

Re: [OpenLayers-Users] Best way to read/parse kml

2009-07-17 Thread Vidal, Antoni
Chris, Your suggestions have been a total success. Thank's a lot. Antoni Vidal Unitat d'Aplicacions SIG-WEB Institut Cartogràfic de Catalunya Parc de Montjuïc, E-08038 Barcelona Tel. (+34) 93 567 15 00 (ext. 3228) www.icc.cat   -Missatge original- De: Christopher Schmidt [mailto:crschm

Re: [OpenLayers-Users] Events on text labels

2009-07-17 Thread Paul Spencer
On 17-Jul-09, at 9:28 AM, Tamlyn Rhodes wrote: >> oh, sorry didn't see that. I haven't tried that patch so I can't >> comment on >> it :) > > I tried applying just your patch to a fresh copy of OpenLayers-2.8 but > I still can't get it to work. I'm sorry, I'm probably being dumb. > Could you pe

Re: [OpenLayers-Users] Best way to read/parse kml

2009-07-17 Thread Christopher Schmidt
On Fri, Jul 17, 2009 at 09:21:40AM +0200, Vidal, Antoni wrote: > Hi, > > Added a sample kml. > > To understand the error I post my code: > > features = g.read(req.responseText); > > var points = new Array(); > for(var i=0; i ls = features[i].geometry; >

Re: [OpenLayers-Users] Events on text labels

2009-07-17 Thread Tamlyn Rhodes
> oh, sorry didn't see that.  I haven't tried that patch so I can't comment on > it :) I tried applying just your patch to a fresh copy of OpenLayers-2.8 but I still can't get it to work. I'm sorry, I'm probably being dumb. Could you perhaps provide a simple example of making a label clickable usi

Re: [OpenLayers-Users] Events on text labels

2009-07-17 Thread Paul Spencer
On 17-Jul-09, at 8:39 AM, Tamlyn Rhodes wrote: > On Fri, Jul 17, 2009 at 1:27 PM, Paul Spencer > wrote: >> The patch does not change how the style map works and I am >> unfamiliar with >> labelSelect (having worked with Styles a lot recently, I don't >> recall that >> being a property of st

Re: [OpenLayers-Users] Events on text labels

2009-07-17 Thread Tamlyn Rhodes
On Fri, Jul 17, 2009 at 1:27 PM, Paul Spencer wrote: > The patch does not change how the style map works and I am unfamiliar with > labelSelect (having worked with Styles a lot recently, I don't recall that > being a property of styles?). I believe Andreas added the labelSelect property to enable/

Re: [OpenLayers-Users] Events on text labels

2009-07-17 Thread Paul Spencer
The patch is pretty simple. From my tests, the textbox object in SVG and the VML equivalent do trigger an event when clicked. The event from the click is passed to the rendered to get the feature from the event and the code that does this checks for a couple of properties on the target of

[OpenLayers-Users] Problem with geometry in OL

2009-07-17 Thread maelstrom666
Hi I am having some issues with geometry in OL. When I click a button, it activates a function which should add a point to the map. Here is the code for that function: function test() { var point2 = new OpenLayers.Geometry.Point(-101.04, 45.68); var pointFeature2 = new

Re: [OpenLayers-Users] Popup in Openlayers (How to fix the popup?)

2009-07-17 Thread Alexandre Dube
Hi, See also (1). There's a 'city shortcut' button (little house) that doesn't use an OpenLayers popup but a plain div instead. See the bdga.css file for more details. (1) http://dev4.mapgears.com/bdga/bdgaWFS-T.html Regards, Alexandre Kwong Hu Kiu wrote: > > > Any example ? I have the

Re: [OpenLayers-Users] Events on text labels

2009-07-17 Thread bartvde
Hi Tamlyn, please always cc the list. I am unfamiliar with the contents of this patch (I just knew of its existance), but maybe Paul or Andreas can shine a light on this? Best regards, Bart >> you might want to check out: >> http://trac.openlayers.org/ticket/2148 > > That looks perfect! I've app

Re: [OpenLayers-Users] Events on text labels

2009-07-17 Thread Tamlyn Rhodes
> you might want to check out: > http://trac.openlayers.org/ticket/2148 That looks perfect! I've applied the patch and got the symbolizers-fill-stroke-graphic.html example working but I don't quite understand how to use the labelSelect property. This is what I've got: ... var textLayer = new Ope

Re: [OpenLayers-Users] Labels/Tooltips on mouse over a Vector layer

2009-07-17 Thread Adrian Popa
Hello Sajeer, When I try to use {hover: true} in the SelectFeature definition, the popups appear and dissapear when I hover the mouse over a marker. If I use hover:false, I get the regular functionality - the popups appear/dissapear when I click on them. This is great... problem is - I would

Re: [OpenLayers-Users] Events on text labels

2009-07-17 Thread bartvde
Hi, you might want to check out: http://trac.openlayers.org/ticket/2148 Best regards, Bart > > I'm displaying some text on a map using a vector layer and labelled points > with radius 0. I would like to make the labels change colour on hover and > fire an event when clicked. Control.SelectFeatu

[OpenLayers-Users] Events on text labels

2009-07-17 Thread tamlyn
I'm displaying some text on a map using a vector layer and labelled points with radius 0. I would like to make the labels change colour on hover and fire an event when clicked. Control.SelectFeature doesn't seem to work for labels. Any suggestions? -- View this message in context: http://n2.nabb

Re: [OpenLayers-Users] Popup in Openlayers (How to fix the popup?)

2009-07-17 Thread Kwong Hu Kiu
Anyone has any ideas about the source code i attached ? I want to fix it as i have spent quite some time on it. Thanks. From: kwon...@hotmail.com To: ad...@mapgears.com; users@openlayers.org Date: Fri, 17 Jul 2009 01:49:45 +0800 Subject: Re: [OpenLayers-Users] Popup in Openlayers (How to fix t

Re: [OpenLayers-Users] Best way to read/parse kml

2009-07-17 Thread Vidal, Antoni
Hi, Added a sample kml. To understand the error I post my code: features = g.read(req.responseText); var points = new Array(); for(var i=0; i"+html+"", null, true, null); map.addPopup(popup);

Re: [OpenLayers-Users] Best way to read/parse kml

2009-07-17 Thread bartvde
Hi, can you post a sample KML file which fails? What is the exact error that you are getting? Best regards, Bart > Hello, > > > > I'm trying to read kml file from user client side. I use: > > g = new OpenLayers.Format.KML(); > > features = g.read(req.responseText); > > ... > > > > To get the

[OpenLayers-Users] Best way to read/parse kml

2009-07-17 Thread Vidal, Antoni
Hello, I'm trying to read kml file from user client side. I use: g = new OpenLayers.Format.KML(); features = g.read(req.responseText); ... To get the collection of features, and all is ok if the kml NOT contains a tag. If so, I get an error. How can I solve this? Thank's i