Re: [OpenLayers-Users] control.SelectFeature

2010-04-26 Thread sunny74
Hi Sarah, Thanks for your reply. I tried using http://dev.openlayers.org/releases/OpenLayers-2.9/examples/getfeature-wfs.html http://dev.openlayers.org/releases/OpenLayers-2.9/examples/getfeature-wfs.html but it doesn't work. How ever when I create a WFS atop a WMS and then do getfeature on t

Re: [OpenLayers-Users] Vector rotation issues with 2.9

2010-04-26 Thread Robert Sanson
It looks to me like the labels are keeping their correct geographical positions, but the vector symbols (arrows) are not. Robert >>> John McGuire 27/04/2010 7:22 a.m. >>> All, I am creating an interface to visualization weather information. However, within the past week, we have noticed t

Re: [OpenLayers-Users] How to print map area with openlayers

2010-04-26 Thread Paul Spencer
We get vector layers into print by using WFST via tinyows and then adding layers to a mapserver map file which draw the features from the same postgis database that tinyows uses. Cheers Paul On 2010-04-26, at 5:07 PM, Robert Sanson wrote: > What we have done in our system (OpenLayers + Mapser

Re: [OpenLayers-Users] How to print map area with openlayers

2010-04-26 Thread guillaumev
Thanks for your code, shawn. What I was missing was the getLayerPxFromLonLat. I'm on the right track now :-) ... Regards, Guillaume. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-print-map-area-with-openlayers-tp4901023p4965569.html Sent from the OpenLayers Use

Re: [OpenLayers-Users] Show polygon vectors as points

2010-04-26 Thread christophe g.
Hi all I am trying to do something similar as what was described in this post back in 2008. The scenario is the following : I have thematic maps (polygons with style rules for rendering different colors for indictors attached to the geometry) for which I wish to allow users to swap the re

Re: [OpenLayers-Users] How to print map area with openlayers

2010-04-26 Thread Robert Sanson
What we have done in our system (OpenLayers + Mapserver) is write some Javascript code to get a list of layers that are visible and the map extent from OpenLayers, then send the parameters to a Python script in our cgi-bin directory, which then sends a CGI map request to Mapserver. The returned

Re: [OpenLayers-Users] Vector rotation issues with 2.9

2010-04-26 Thread Andreas Hocevar
Hi, can you please try to create a minimal example that shows the issue? Thanks, Andreas. On Apr 26, 2010, at 21:22 , John McGuire wrote: > All, > > I am creating an interface to visualization weather information. > However, within the past week, we have noticed that when a user zooms in >

Re: [OpenLayers-Users] How to print map area with openlayers

2010-04-26 Thread Shawn Oatley
I don't have any physical code that can be shared, but I can tell you what I did in order to get it to work. You can probably apply this to whatever programming language you are using. We are using ASP.NET and took advantage of the System.Drawing namespace to draw the vectors back on the imag

Re: [OpenLayers-Users] How to print map area with openlayers

2010-04-26 Thread guillaumev
Hi, soatley > I'm trying to do the exact same thing (server side stitching of the different layers of the map). However, after using the code here: http://trac.openlayers.org/wiki/Printing, the vector layers do NOT get printed. Do you have some reusable code that you would be willing to share, in

[OpenLayers-Users] Vector rotation issues with 2.9

2010-04-26 Thread John McGuire
All, I am creating an interface to visualization weather information. However, within the past week, we have noticed that when a user zooms in and out with wind arrows drawn, the vector is separate from its label, and nowhere near its intended direction. I have found that v2.8 does not have

Re: [OpenLayers-Users] unselect did not work

2010-04-26 Thread Arnd Wippermann
Hi, i'm not sure, why you need a layer for your selected feature. Why not use the selectFeatureControl on the wfs layer. About your question. The problem is the feature object. You add not a new feature to a new layer. Instead it seems, that you move the selected feature from the wfs layer

Re: [OpenLayers-Users] Google Maps with WMS Overlays, Pan doesn't work anymore

2010-04-26 Thread And.
I had another kind of problem involving Pan and GMaps. Using Chrome (or Iron) when I move a Google Layer the "moving" events are not being fired, so the Vector Layers over the Google Layer stays static (it doesn't happen if I move with the mouse over a feature in the Vector Layer). Using the PanZ

Re: [OpenLayers-Users] Google Maps with WMS Overlays, Pan doesn't work anymore

2010-04-26 Thread t...@f!t
Some additional info: :-) The issue was only with Firefox. IE and Opera worked well. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Google-Maps-with-WMS-Overlays-Pan-doesn-t-work-anymore-tp4963010p4963036.html Sent from the OpenLayers Users mailing list archive at Nabbl

[OpenLayers-Users] Google Maps with WMS Overlays, Pan doesn't work anymore

2010-04-26 Thread t...@f!t
Hello, Today(!) I noticed that it wasn't anymore possible to PAN with the mouse. The map moved just a little bit. It's strange because I didn't changed my file. I use Google Maps with some WMS Layers. Then I tried some things. The reference to Google Maps was like this:

Re: [OpenLayers-Users] control.SelectFeature

2010-04-26 Thread Sarah Schuessler
Hi, I want to do the same like here: http://dev.openlayers.org/releases/OpenLayers-2.9/examples/getfeature-wfs.html and get information about selected feature(s) back. I think that it didn`t work because of problems with geoserver wfs version (reproject) and/or params. I don`t know exactly (mo

Re: [OpenLayers-Users] control.SelectFeature

2010-04-26 Thread sunny74
Hi Sarah, I am trying to achieve the same thing that you did.I want to select a portion within a wfs layer and view that selection in a different style. I hope this is your requirement. I find that you have taken a vector layer and a wfs layer and finally a selectfeature with a Control.SelectF

[OpenLayers-Users] Problem with OpenLayers.Layer.WMS in Firefox

2010-04-26 Thread Rahn Hanno (rahn)
Hello, I have a little complicated Question. I try to realise a Layer with labels for Polygons. For this I use OpenLAyers 8 and UMN Mapserver. I make a Layer (TYPE ANNOTATION) in Mapfile. After this I define a layer like this: var be = new OpenLayers.Layer.WMS('Beschriftung', urlArray, {map:map

Re: [OpenLayers-Users] Basic GeoServer OpenLayers map

2010-04-26 Thread Steven Venter
Hi While debugging the script i noticed that the text layer's div contain no information (textContent & title). If I place text in the two variable, using firebug, it is displayed on the map but at the wrong location, displayed in the upped right corner of the map. The url displayed in fire

Re: [OpenLayers-Users] Basic GeoServer OpenLayers map

2010-04-26 Thread Sarah Schuessler
Hi Steven, perhaps this: http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost could help you a little bit. At examples page of OL you can find a proxy.cgi scipt for reference. best regards Sarah Von: Steven Venter An: Frank Broniewski ; users@op

Re: [OpenLayers-Users] Basic GeoServer OpenLayers map

2010-04-26 Thread Steven Venter
Hi Frank Still no luck. After clearing the browser cache firebug indicates that the file is loaded but no image is generated on the map. The content of the file is correctly displayed in firebug. My code is based on the openlayers-2.8/examples/markersTextLayer.html. My text file looks like this

[OpenLayers-Users] VectorLayer - getFeaturesByAttribute

2010-04-26 Thread Daniel Degasperi
Hi, I've the necessity to grep features from my VectorLayer on basis of a attribute. As it is now, I have to go through all the features and check their attribute: var features = [] for(key in vectorLayer.features) { if (vectorLayer.features[key].attributes.type == 'something') fea

[OpenLayers-Users] unselect did not work

2010-04-26 Thread Sarah Schuessler
Hi list, I try to use Control.SelectFeature but I can`t unselect (selection layer does not get removed). Here is my code: var selectFeature = new OpenLayers.Control.SelectFeature(wfs2, {clickout: true, multiple: false, hover: false, toggle:false, toggleKey: "shiftKey", box: true, multipleKey: "

Re: [OpenLayers-Users] StyleMap and dynamic loaded styles

2010-04-26 Thread Jerome Freyre
The JSON is correctly interpreted with jquery. I tried to move the call myStyles.addUniqueValueRules("default", "type", JSONStyles); in the callback of my ajax query and it is working. I forgot that if this call is placed after the ajax, JSONStyles will be interpreted as a null object becaus

Re: [OpenLayers-Users] Basic GeoServer OpenLayers map

2010-04-26 Thread Frank Broniewski
Hello Steven, if the text layer is at the same level as the HTML page try {location: "txtfile.txt"} . I don't think your relative path gets well translated Frank Am 26.04.2010 09:00, schrieb Steven Venter: > Hi Frank > > Thanks for your help. (this message was also sent to the mailing list - >

Re: [OpenLayers-Users] StyleMap and dynamic loaded styles

2010-04-26 Thread Andreas Hocevar
Hi, On Apr 26, 2010, at 09:21 , Jerome Freyre wrote: > > Hello dear list, > > I am currently working on a project where we try to load styles dynamically. > > I use jquery to load my styles on a JSON representation. > > > $.ajax({ >type: 'GET', >url:'/services.php/map/s

[OpenLayers-Users] StyleMap and dynamic loaded styles

2010-04-26 Thread Jerome Freyre
Hello dear list, I am currently working on a project where we try to load styles dynamically. I use jquery to load my styles on a JSON representation. $.ajax({ type: 'GET', url:'/services.php/map/styles', async: 'false', dataType: 'json', success:

Re: [OpenLayers-Users] Basic GeoServer OpenLayers map

2010-04-26 Thread ZAMap
Hi Frank Thanks for your help. I managed to solve the problem over the weekend. I used addLayers with a single layer supplied. I changed this to addLayer and my map displayed. I also added options to the map (maxResolution, maxExtent and projection). Lesson, don't follow tutorials blindly. But