[OpenLayers-Users] Filter Encoding

2008-07-01 Thread Fabio D'Ovidio
Hi! I am trying to do as following: var poligono = new OpenLayers.Layer.WFS( Elementi poligonali, /geoserver/wfs, {typename: 'topp:poligono'}, { typename: 'poligono', featureNS:

Re: [OpenLayers-Users] [Geoserver-users] Filter Encoding

2008-07-01 Thread bartvde
Your code can never work, OpenLayers.Util.getParameters() returns an Object not a string. Write you poligona.params.Filter to the Firebug console (console.log(poligona.params.Filter)) and check if it is really correct. Also you have a ; before the + for string concatenation which cannot work as

Re: [OpenLayers-Users] [Geoserver-users] Filter Encoding

2008-07-01 Thread Fabio D'Ovidio
[EMAIL PROTECTED] ha scritto: Your code can never work, OpenLayers.Util.getParameters() returns an Object not a string. Yes, u right! The problem is that even if I write a value in the literal i am not able to display my data. Thanks again! -- Ing. Fabio D'Ovidio INOVA Open

Re: [OpenLayers-Users] I'm stupid?

2008-07-01 Thread David Martinez Morata
OK, I think I start to understad. I modify my code like this (with spherical mercatro proyection in googlelayer, were I think it's ok) And change the code of EPSG code for my layer. Now my code it's: script type=text/javascript // make map available for easy debugging

[OpenLayers-Users] Problem with marker

2008-07-01 Thread Marcello Brunaldi
Hello everyone I have a problem to change the icon and the size of the marker when I use OpenLayers.Layer.GeoRSS, any size and any icon cheque with OpenLayers.Icon is not taken. Show always the marker by default. This is the code. yelp = new OpenLayers.Icon(blu.png, new OpenLayers.Size(20,29));

[OpenLayers-Users] Catching the 'no imagery at this zoom level' before it displays?

2008-07-01 Thread czieler
I've been looking around through the forums and other places, and I am not sure this is even possible, but I thought I'd see if anyone has found a way to do this. I was hoping to find a way to catch the Google 'No imagery is available at this zoom level' message, and then tell my open layers map

Re: [OpenLayers-Users] Catching the 'no imagery at this zoom level' before it displays?

2008-07-01 Thread Christian López Espínola
What you receive is a valid image with the content No imagery blabla. In your client side you cannot know that isn't a 'valid' one. On Tue, Jul 1, 2008 at 4:29 PM, czieler [EMAIL PROTECTED] wrote: I've been looking around through the forums and other places, and I am not sure this is even

Re: [OpenLayers-Users] Catching the 'no imagery at this zoom level' before it displays?

2008-07-01 Thread czieler
Right.. I know that.. I was just hoping there might be an error thrown somewhere as well, that I could check for. I didn't think there was, but thought I'd see if anyone had found a way to do so. Christian López Espínola wrote: What you receive is a valid image with the content No imagery

Re: [OpenLayers-Users] Measure tool

2008-07-01 Thread Oscar Fonts
You can add the feature to the persistent layer informed in the constructor. In measureGeometry method, add these lines: *var* feature = *new* OpenLayers.Feature.Vector(geometry); * this*.layer.addFeatures([feature]); Tell me if it doesn't work, I could provide a working example. Regards-

[OpenLayers-Users] Quick eval() question

2008-07-01 Thread Ian
I'm using a javascript object to keep track of the current WMS layer a user is querying against: myObj.query.layer = 'volcanoes'; and am using eval to convert this string back to the layer variable name for a getFeatureInfo request: var queryLyr = eval(window.myObj.query.layer); but know that

Re: [OpenLayers-Users] GeoJSON layer on top of google - repeated load of features

2008-07-01 Thread Adorian Ardelean
Hi, First of all thank you for the prompt suggestion. Worked perfectly and I was able to include also a style to work with properties defined within GeoJSON file: * specimens = new OpenLayers.Layer.GML(specimens, geojson.php, {format: OpenLayers.Format.GeoJSON, projection: new

[OpenLayers-Users] Weird IE offset problem with vector layer...

2008-07-01 Thread Steve Lime
Hi folks: I'm converting an older application that uses table layouts to OL (v. 2.6) and have everything working nicely except for an issue with a vector layer. I've setup a simple measure function using the draw feature control. In IE however the feature is offset in the x direction from the

Re: [OpenLayers-Users] refresh map

2008-07-01 Thread ??
Fabio D'Ovidio, I used this codes to refresh my georss layer.I don't know whether it will be helpful for you or not. //categoryMapMarkers = new OpenLayers.Layer.GeoRSSM2Ex( '??', loca, {'icon':schoolIcon}); categoryMapMarkers.clearFeatures();

Re: [OpenLayers-Users] GeoJSON layer on top of google - repeated load of features

2008-07-01 Thread Adorian Ardelean
Hi all, I realize now that some parts of the code in my previous message included bits from trials. So the correct and functional code for second version of loading a GeoJSON file would be: OpenLayers.loadURL(geojson.php, {}, null, onLoadgml, onLoadFailedgml); function onLoadgml(r) { if

Re: [OpenLayers-Users] GeoRSS format limits to 4k size the XML node into FF

2008-07-01 Thread Tim Schaub
Hey- Simone Gadenz wrote: Hi all, probably you guys knew that Firefox has a limit of 4k on XML node content. I have just realised because some of the lines I had loaded from a GeoRSS file were cut after 4096 chars. I have been said to use the line[0].textContent instead of

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

2008-07-01 Thread Tim Schaub
Hey- Zer wrote: Hi! Is there anyone that knows if it is possible to convert or just show vector polygons (from GML) as points instead of vectors? I would like to present the center coordinate aswell as the polygon. We've done some work to allow rendering non-point geometries with a single

Re: [OpenLayers-Users] Quick eval() question

2008-07-01 Thread Tim Schaub
Hey- Ian wrote: I'm using a javascript object to keep track of the current WMS layer a user is querying against: myObj.query.layer = 'volcanoes'; and am using eval to convert this string back to the layer variable name for a getFeatureInfo request: var queryLyr =