[OpenLayers-Users] VML optimization- node.style.cssText in IE possible?

2010-04-07 Thread ashley_c_mort
We are trying to optimize the performance of our app that uses OpenLayers (IE 7&8). It appears that the node.style calls in the VML.js are taking a lot of time in certain cases and we were trying to use cssText to get it done in one call. Has anyone tried using one node.style.cssText call ins

Re: [OpenLayers-Users] How to use WMSGetFeatureInfo to get features andadd it to map?

2010-04-07 Thread Robert Sanson
Once you have parsed out the response from your WMS GetFeatureInfo request, you can use the result to send a WFS GetFeature request. Here is a GetFeature request which uses a farmid= variable to send a where filter condition: var othptsurl = "http://wfsserver/cgi-bin/agbwfs.exe?farmid="+farm

[OpenLayers-Users] How to use WMSGetFeatureInfo to get features andadd it to map?

2010-04-07 Thread ahwangyuwei
I'm using WMSGetFeatureInfo to get Featureinfo. How can I get Feature from the WMSGetFeatureInfo 's response? And add them to map? I am imitating the Control OpenLayers.Control.WMSGetFeatureInfo's bahavior. It's available?  map.events.register('click', map, function (e) {   

[OpenLayers-Users] How to use WMSGetFeatureInfo to get features and add it to map?

2010-04-07 Thread ahwangyuwei
 I'm using WMSGetFeatureInfo to get Featureinfo. How can I get Feature from the WMSGetFeatureInfo 's response? And add them to map? I am imitating the Control OpenLayers.Control.WMSGetFeatureInfo's bahavior. It's available?  map.events.register('click', map, function (e) {     doc

Re: [OpenLayers-Users] WFS GetFeature on Mapserver doesn't work

2010-04-07 Thread Robert Sanson
Here is a WFS GetFeature request that work for me against my Mapserver installation: http://myserver/cgi-bin/agbwfs.exe?farmid=AS1&request=getfeature&typename=farm&service=wfs&version=1.0.0&BBOX=1472102,5119440,1475670,5123000 The typename is just the layer name in the Mapserver map file.

Re: [OpenLayers-Users] WFS GetFeature with Mapserver, multiple layers (typenames)

2010-04-07 Thread Attila BERÉNYI
Hi, Your code looks fine for me at first sight, what are the errors that you mention? Could you send a link or something where we can see what you have been done so far? Cheers, Attila 2010.04.07. 17:31 keltezéssel, sunny74 írta: > Hi Attila, > > I had a look at your previous post i.e > http:/

Re: [OpenLayers-Users] Just another trasformation problem ;)

2010-04-07 Thread Arnd Wippermann
Perhaps you do two times a transformation. I would think, that in your Vector layer the transformation takes place, so the second part isn't needed. var isoline = new OpenLayers.Layer.Vector("isoline", { strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLa

Re: [OpenLayers-Users] please help us test OpenLayers 2.9RC1

2010-04-07 Thread Arnd Wippermann
Hi, I have applied the patch to my application and now changing the opacity of the Google layers works as expected. Arnd -Ursprüngliche Nachricht- Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im Auftrag von Tim Schaub Gesendet: Dienstag, 6. April 2010 23:55 An:

Re: [OpenLayers-Users] [mapserver-users] record element in query header

2010-04-07 Thread Arnd Wippermann
Hi, you can try to use javascript in your template. Below an example (it's the whole template, nothing cut out) I use to get different colors for my table rows. var idx = parseInt("[lrn]")%2; var myClass = "tdBody" + idx; //that should only be written for the first row if([lrn]==1) documen

[OpenLayers-Users] How to get position of feature from DrawFeature?

2010-04-07 Thread gtg287y
I am using the Draw Feature Control to draw polygons (namely circles) on a Vector Layer. I want to be able to save the center of the circle to a variable, as well as the radius of the circle. I'm not seeing any native way to do this. When I draw a feature, I'm assuming it's a Vector Feature, wh

Re: [OpenLayers-Users] WFS GetFeature with Mapserver, multiple layers (typenames)

2010-04-07 Thread sunny74
Hi Attila, I had a look at your previous post i.e http://n2.nabble.com/WFS-GetFeature-with-Mapserver-td4748857.html#a4748857 http://n2.nabble.com/WFS-GetFeature-with-Mapserver-td4748857.html#a4748857 and also the link where you have the working example of WFS GetFeature with Mapserver.But sadly

[OpenLayers-Users] Click event for 4 maps

2010-04-07 Thread Rahn Hanno (rahn)
Hello list, In my project I have 4 maps at one side. In this maps I show polygon. In each map is the same boundaries but in dieffernt timestamps. First map shows a layer in 1980, second map shows the map in 1990, third in 2000 and last in 2010. In each year the layer is colored different. Now I

[OpenLayers-Users] WFS GetFeature on Mapserver doesn't work

2010-04-07 Thread sunny74
Dear Friends, I am making a WFS GetFeature request on Mapserver. My url is: http://localhost:81/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/Delhi/Delhi1_wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GETfeature &REQUEST=getfeature&typename=Adminbndy3&Filter=Polygon_nmGhaziabad but I get the error

[OpenLayers-Users] Problem with display: none on unselect

2010-04-07 Thread Grzegorz Kowal
Hello, I have ClusterStrategy On Vector Layer. On select I'm showing a popup. function createPopup(feature){ if(popup){ onFeatureUnselect(feature); } popup = new OpenLayers.Popup.FramedCloud("feed", new OpenLayers.LonLat(feature.geometry.x, feature.geometry.y), new OpenLayers.Size(300,120), "abc"

Re: [OpenLayers-Users] GetFeatureInfo cann't send request?

2010-04-07 Thread Mapmaker
http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost If you don't use a proxy host, the OL html file must be on the same server/domain as your geoserver instance. -- View this message in context: http://n2.nabble.

Re: [OpenLayers-Users] WFS GetFeature Example problem

2010-04-07 Thread Stefan Jänicke
Hi Alex, since your geoserver instance runs on the same server as your webapplication, it may help to delete the "proxy-line": OpenLayers.ProxyHost= "proxy.cgi?url="; Thus far, Stefan. Original-Nachricht > Datum: Wed, 7 Apr 2010 14:21:55 +0200 > Von: Alex Zeit > An: users@ope

[OpenLayers-Users] WFS GetFeature Example problem

2010-04-07 Thread Alex Zeit
Dear All, I am trying to make WFS GetFeature Example ( http://www.openlayers.org/dev/examples/getfeature-wfs.html ) to work with my GeoServer. The states map shows up but selection of features does not work. see: http://hboard.iwk.uni-karlsruhe.de:8080/QuickStartWicket-1.0-SNAPSHOT/qswicket/?wicket

Re: [OpenLayers-Users] Just another trasformation problem ;)

2010-04-07 Thread Giuseppe Naponiello
Thanks, but now my layer is shifted in South Africa!!! I don't understand what's wrong: the map output the exact coordinates. Well, I've: 3 base layers -> epsg:900913 1 gml layer-> epsg:2498 and I want display projection in wgs84 Is my set up (code in my previous mail) correct? -beppe- 201

Re: [OpenLayers-Users] Simple print tool

2010-04-07 Thread David Alda Fernandez de Lezea
Hello, Maybe is not the best way of doing things, but I managed to get the vector data in a pop up window by doing: //Take all the svg elements represented in the XHTML svgList = document.getElementsByTagName("svg"); for (var i=0;i<=svgList.length-1;i++){ importedNode = document.importN

[OpenLayers-Users] Problem with images when put OpenLayers.js in local path

2010-04-07 Thread JuKiM
Hi, I'm facing a strange problem when I put the path to the openlayers.js in my local machine... If I put the script source to be http://openlayers.org/api/OpenLayers.jseverything goes ok... But now, I want to serve the maps with geoserver, and get the openlayers.js from a local js path.. In that

Re: [OpenLayers-Users] Just another trasformation problem ;)

2010-04-07 Thread bartvde
Hi, not sure if this is the cause of your problem since I don't know anything about EPSG:2498, but can you try adding xy false to your Format.GML: var isoline = new OpenLayers.Layer.Vector("isoline", { strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenL

[OpenLayers-Users] Just another trasformation problem ;)

2010-04-07 Thread Giuseppe Naponiello
Hi all, I ought to display a map with osm layer as base and a gml file of a little part of Armenia. First step was convert my shapefile, with projection epsg:2498, in a gml format (ogr2ogr -f GML ...). Second step was set up my map. Within tag of my html page, I' ve insert a link to these librari

[OpenLayers-Users] WFS GetFeature with Mapserver, multiple layers (typenames)

2010-04-07 Thread Attila Berényi
Dear All, I'd like to use WFS GetFeature function on more than one layers with MapServer. As of now I have a working example for one typename: http://webgis.fmt.bme.hu/gfi/t4.html (both hover and selection enabled). Now I look for a solution how to expand this feature for more than one laye

Re: [OpenLayers-Users] WFS GetFeature with Mapserver

2010-04-07 Thread Attila Berényi
Dear All, Finally I've succeed applying WFS GetFeature (based on the GeoServer example here: http://openlayers.org/dev/examples/getfeature-wfs.html) with MapServer, and hereby I will share my experiences to give some help for the users with the same problem. So, using WFS GetFeature functio