changed the label tag to:
label: ${getLabel},
and added:
{ context: {
getLabel: findname
}
as well as:
var findname = function(feature) {
alert('feature run');
var szValue;
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
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
___
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
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
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
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,
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,
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.
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',
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
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),
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
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,
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
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
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
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:
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...
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,
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:
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,
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
23 matches
Mail list logo