Re: [OpenLayers-Users] Read WFS capabilities file

2010-02-11 Thread Henry Rotzoll
Gabriel Nolasco [nolasco_gabr...@yahoo.com.br] helped me with this code: Use WFSCapabilities format instead [1]: wfsParser = new OpenLayers.Format.WFSCapabilities(); wfsCapabilities = wfsParser.read(response.responseText); wfsCapabilities.featureTypeList.featureTypes

[OpenLayers-Users] Parsing KML file or rather using custom format

2010-02-11 Thread Boris T.
Hi all, first of all thanks to all you folks spending your time for such a great library. I'm pretty new to OpenLayers and started reading the API few weeks ago and checked the examples too. Bit by bit I think to understand the concept of OpenLayers, and I was hoping that some of you OL cracks

[OpenLayers-Users] Draw lines in fancy styles?

2010-02-11 Thread Wintermute
hi, I want to draw some lines in more advanced styles, would that be possible with OpenLayers? I attached a sample screenshot of another application I use. Especially I'm looking for a way to get small outlines and the small center lines. http://n2.nabble.com/file/n4553715/lines.jpg -- View

Re: [OpenLayers-Users] Can't update a feature for which there is no FID (WFS-T)

2010-02-11 Thread Eric Lemoine
On Wednesday, February 10, 2010, paweluz pawe...@o2.pl wrote: Hi! Thanks for your help. I try to  use my_wfs_layer.refresh({force:true }) but it works this same. I am using the Openlayer.state.INSERT for adding new data into database. I am also using Layer.WFS, not vector. When I  try to

Re: [OpenLayers-Users] KML and area colorization

2010-02-11 Thread Andreas Hocevar
See http://trac.openlayers.org/ticket/2465#comment:10 Regards, Andreas. Vadim B. wrote: Hi, I'm experiencing the same problem in IE7/8 as well - KML layer with a shaded polygon has NO shading in Internet explorer but looks fine in Firefox. This can be replicated without my app code using

[OpenLayers-Users] Bad Bounding box request

2010-02-11 Thread Ben Madin
G'day all, I am getting the hang of OpenLayers tilecache, but have noticed some 404 errors creeping into my apache access logs. After fixing most of them, I'm still noticing these odd ones (500, 404) consistently occurring. xyz.xyz.xyz.xyz - - [12/Feb/2010:01:57:11 +1000] GET

[OpenLayers-Users] Changing icons in GeoRSS layer

2010-02-11 Thread Tobia Di Pisa
Hi, I'm having a problem with Firefox by changing the icons in a GeoRSS layer. This is my code: ... var rss_layer= new OpenLayers.Layer.GeoRSS(...); for(var f=0; frss_layer.features.length; f++){ var feature = rss_layer.features[f]; var size = new OpenLayers.Size(21,25); var

Re: [OpenLayers-Users] Trying to draw a box on a map, and get the coordinates back.

2010-02-11 Thread Jtrsmith
Thanks again Arnd. I was able to get the coordinates back, however they are formatted differently. i get a csv list i.e. 50, 0, 50, 50, 0, 50, 0, 0, 50, 0 instead of brackets i.e. [50, 0], [50, 50], [0, 50], [0, 0], [50, 0] i am using the value to get the coordinates of a polygon added to my

Re: [OpenLayers-Users] vector layer from text file

2010-02-11 Thread ryan burns
Thanks, Chris! ryan On Wed, Feb 10, 2010 at 4:57 AM, Christopher Schmidt crschm...@metacarta.com wrote: On Wed, Feb 10, 2010 at 12:37:00AM -0500, ryan burns wrote: Hi all OLers- Does anyone know of a way to structure a text file (for reading into OpenLayers) to support lines and

Re: [OpenLayers-Users] KML and area colorization

2010-02-11 Thread Vadim B.
Wow, thanks for the quick response and code change. I rolled the latest VML.js into my codebase (OL 2.8) and rebuilt OpenLayers.js, but I'm still seeing the same behavior in IE. Do I need to get other files besides VML.js to see the change? Thanks, -Vadim -- View this message in context:

Re: [OpenLayers-Users] Trying to draw a box on a map, and get the coordinates back.

2010-02-11 Thread Arnd Wippermann
Hi, function findcoords (event) { var vertices = event.feature.geometry.getVertices(); var brackets = vertices.toString().replace(/POINT\(/g,[).replace(/\),/g,],).replace(/ /g,,).replace(/\)/,]); alert('ID:' + brackets); } This is one way to get what you want. If there is a

Re: [OpenLayers-Users] Trying to draw a box on a map, and get the coordinates back.

2010-02-11 Thread Christopher Schmidt
On Thu, Feb 11, 2010 at 10:20:07PM +0100, Arnd Wippermann wrote: Hi, function findcoords (event) { var vertices = event.feature.geometry.getVertices(); var brackets = vertices.toString().replace(/POINT\(/g,[).replace(/\),/g,],).replace(/ /g,,).replace(/\)/,]); alert('ID:' +

Re: [OpenLayers-Users] KML and area colorization

2010-02-11 Thread Frederic Junod
Hello, Seems to be an issue with VML and the kml IconStyle property: * edit [1] and remove the IconStyle element (in Style id 'default_normal') * load this kml in http://www.openlayers.org/dev/examples/vector-formats.html The fill color and opacity is correct. maybe: