Re: [OpenLayers-Users] vector labels using kml

2010-06-10 Thread Thqr
changed the label tag to: label: ${getLabel}, and added: { context: { getLabel: findname } as well as: var findname = function(feature) { alert('feature run'); var szValue;

Re: [OpenLayers-Users] problem consuming escaped single quotes in GeoJSON with a clustered vector layer

2010-06-10 Thread Eric Lemoine
On Thu, Jun 10, 2010 at 4:28 AM, Zac Spitzer zac.spit...@gmail.com wrote: I have having a problem consuming some GeoJSON, basically the name value in the sample below is causing my vector layer to silently abort rendering. i believe it's valid json, as i can load it into a javascript variable

[OpenLayers-Users] scalable symbology?

2010-06-10 Thread Imran Rajjad
Hi, Is it possible to change the stroke width of a line feature acording to zoom or resolution in open layers. I have vector layer with linear feautres, I need the width of lines to be according to zoom levels, any ideas? regards, Imran -- I.R ___

[OpenLayers-Users] LayerSwitcher Event

2010-06-10 Thread Rahn Hanno (rahn)
Hello, Today I try to realise a trigger for my LayerSwitcher. Something like onLayerClick or so. I want to start a function if I select/unselect a layer in the Layerswitcher. In my Layerswitcher I have a Layer. If I select this Layer, then I want to set the opacity from all other layers to

Re: [OpenLayers-Users] LayerSwitcher Event

2010-06-10 Thread Eric Lemoine
On Thu, Jun 10, 2010 at 11:59 AM, Rahn Hanno (rahn) r...@zhaw.ch wrote: Hello, Today I try to realise a trigger for my LayerSwitcher. Something like onLayerClick or so. I want to start a function if I select/unselect a layer in the Layerswitcher. In my Layerswitcher I have a Layer. If I

[OpenLayers-Users] panTo animation outside screen

2010-06-10 Thread Imran Rajjad
Hi, Is it possible to force smooth panning even if the given point is outside current screen view? regards, Imran -- I.R ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users

[OpenLayers-Users] OPENLAYERS LayerChange

2010-06-10 Thread Rahn Hanno (rahn)
Hi, I try to make it, but it doesn't work. My layer looks like this: var zielrichtung = new OpenLayers.Layer.WMS(Zielrichtung,urlArray, {map:mapFile,layers:layerName,format:image/png,EXCEPTIONS:application/vnd.ogc.se_inimage}, {singleTile: true,

Re: [OpenLayers-Users] OPENLAYERS LayerChange

2010-06-10 Thread Eric Lemoine
On Thu, Jun 10, 2010 at 1:40 PM, Rahn Hanno (rahn) r...@zhaw.ch wrote: Hi, I try to make it, but it doesn't work. My layer looks like this: var zielrichtung = new OpenLayers.Layer.WMS(Zielrichtung,urlArray,

Re: [OpenLayers-Users] How to set min/maxResolution for Layers on the OverviewMap?

2010-06-10 Thread Fabian Patzke (OL)
Thanks, with the trunk it's working as expected. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-set-min-maxResolution-for-Layers-on-the-OverviewMap-tp5130819p5162817.html Sent from the OpenLayers Users mailing list archive at Nabble.com.

Re: [OpenLayers-Users] OPENLAYERS LayerChange

2010-06-10 Thread Rahn Hanno (rahn)
Super, That works. And how can I register a changelayer listener on the map? I try this: var options1 = { maxExtent: new OpenLayers.Bounds(662642.346412,152155.85,726497.716088,206636.15), maxResolution:'auto',

[OpenLayers-Users] Points (vector) on either side of date line

2010-06-10 Thread Mike K.
I am trying to make points appear no matter what side of the date line they are. I understand that wrapDateLine has some issues with that (having searched for the last week for an answer) and that one of the ways to do it is to brute force it by adding the vector twice and shifting the

Re: [OpenLayers-Users] OPENLAYERS LayerChange

2010-06-10 Thread Eric Lemoine
On Thu, Jun 10, 2010 at 2:04 PM, Rahn Hanno (rahn) r...@zhaw.ch wrote: Super, That works. And how can I register a changelayer listener on the map? I try this: var options1 = {                maxExtent: new OpenLayers.Bounds(662642.346412,152155.85,726497.716088,206636.15),    

Re: [OpenLayers-Users] OPENLAYERS LayerChange

2010-06-10 Thread Rahn Hanno (rahn)
That's it. Thank you very much for your help. Greetings Hanno -- Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen Fachstelle Geoinformatik Grüental, Postfach CH-8820

Re: [OpenLayers-Users] panTo animation outside screen

2010-06-10 Thread Imran Rajjad
any idea where do I need to make changes in openlayers so that it pans even if the destination is outside screen I checked the Map.js in the /lib folder , there is the panTo function , I set the if condition to true manualy but still its not working. any ideas? regards, Imran On Thu, Jun 10,

Re: [OpenLayers-Users] scalable symbology?

2010-06-10 Thread Marc Jansen
Hi Imran, see the example http://openlayers.org/dev/examples/styles-context.html for the use of context-methods that can be used to style features according to the return value of a JavaScript function (the layer2 in the example makes use of a context-object). It should be possible to read

[OpenLayers-Users] Proj4 and displayProjection?

2010-06-10 Thread Zoran Jankovic
Hi list, I'm sort of a newbie, and I have a question regarding the usage of Proj4.js, defining displayProjection and various browser interpretation. In short, everything works as intended when using latest Firefox, but it seems that my custom displayProjection is not recognized when using Chrome

Re: [OpenLayers-Users] Proj4 and displayProjection?

2010-06-10 Thread Mike Adair
Zoran, It looks like you are using Proj4js where it dynamically loads the required projection code files. In some earlier versions of Proj4js that had problems in IE (possibly in Chrome as well) but I think that is fixed in the latest version. In any case, you can get around the issue by

Re: [OpenLayers-Users] getArea calculated wrong area.........

2010-06-10 Thread Rossko
var area = feature.geometry.getLength(); I wouldn't expect that to return an area?? Have you tried .getArea() ? http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Geometry/Polygon-js.html -- View this message in context:

Re: [OpenLayers-Users] Proj4 and displayProjection?

2010-06-10 Thread Zoran Jankovic
That's it!!! And the solution was under my nose! Well, that's almost it - it works now with FF and Chrome, but with IE8 it works only in compatibility mode. That's with proj4js-compressed. Thanks a bunch, I owe you a beer! New link, still be live for some time if someone has a followup...

[OpenLayers-Users] Using Gutter property with Tilecache...

2010-06-10 Thread Paul james
Hello guys... I have a Openlayers WMS layer with : gutter: 10 Everything works fine without Tilecache... Using Tilecache I got that error: *An error occurred: can't find resolution index for 0.076671. Available resolutions are: [0.095243450641262731, 0.073019978824968093, 0.047621725320631365,

Re: [OpenLayers-Users] Using Gutter property with Tilecache...

2010-06-10 Thread christopher.schmidt
On Jun 10, 2010, at 3:57 PM, ext Paul james wrote: Hello guys... I have a Openlayers WMS layer with : gutter: 10 Everything works fine without Tilecache... Using Tilecache I got that error: An error occurred: can't find resolution index for 0.076671. Available resolutions are:

[OpenLayers-Users] Capture empty result from wfs protocol

2010-06-10 Thread Zer
Hi users, I have a vector layer that shows features fetched from Geoserver using fixed strategy and wfs protocol together with a filter. Works just fine! I then use wfsParcelLayer.events.on and a function on the featuresadded event to zoom in to the feature. That works fine too. However,

Re: [OpenLayers-Users] problem consuming escaped single quotes in GeoJSON with a clustered vector layer

2010-06-10 Thread Zac Spitzer
Hi Eric, thanks for trying that. I have created a cut down test case which demonstrates the problem http://mapguide-central.ennoble.com.au/testcase/geo_json_escaping/testcase.html there are two vector layers, one which is escaped and one which isn't the escaped one is on by default and