[OpenLayers-Users] OpenLayers 2.9.1 released

2010-05-06 Thread bartvde
The OpenLayers Development Team is proud to announce the release of
OpenLayers 2.9.1, the first bug fix release of OpenLayers 2.9.

Since the 2.9 release 3 regressions have been fixed, as well as 2
documentation errors:

 * Protocol.HTTP: PUT and DELETE should use url from options (#2393)
 * do not use getDimensions anymore, but use offsetWidth and offsetHeight
(#2414)
 * Rotated graphics are positioned incorrectly when moved or zoom changes
(#2596)
 * preload default value is incorrect in Strategy.Fixed documentation (#2611)
 * isBaseLayer default value is incorrect in Layer.Vector documentation
(#2613)

See also: http://trac.openlayers.org/wiki/Release/2.9.1/Notes

For information on possible changes that will need to be made between
this version of !OpenLayers and previous versions, please look at the
Release notes, available at the Release Notes information [1].

[1] http://trac.openlayers.org/wiki/Release/2.9.1/Notes#CompatibilityNotes

Best regards,
Bart

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] measure layer

2010-05-04 Thread bartvde
I think you need to create your own vector layer, and then listen to the
measure event. In the event handler you can create a feature using the
geometry returned and add it to your layer.

Best regards,
Bart

> Hi all,
> using measure control, after I have drawn a line (or polygon) I get the
> relative value for length (or area), and then,  if I make a new measure
> drawing a new line, the previous one disappear.
> I would like to have instead a "mesure layer" that allow to make multiple
> measures, drawing multiple lines each one with a progressive number as
> label.
> What is the best way to get this result?
> Is it possible to make this layer a real layer (turning it on/of)?
>
> Thanks
> Marco
>
>
>
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] upcoming 2.9.1 release

2010-04-29 Thread bartvde
Hi list,

because of a regression found in OpenLayers 2.9 (related to rotation of
vector features in the SVG renderer, see
http://trac.openlayers.org/ticket/2596 for details), we are planning to
release a bug fix release soon (somewhere next week).

Therefore we invite you to test OpenLayers 2.9 in your applications and
report any regressions (i.e. things that worked in 2.8, but not in 2.9)
through the OpenLayers Trac using Milestone 2.9.1.

Thanks in advance.

Best regards,
Bart

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Spatial Filter parameter for WFS GetFeature

2010-04-27 Thread bartvde
The control fills in the value as I said before.

Please install Firebug and check the request generated by OpenLayers and
sent to your WFS.

Bart

>
> Hi Bart,
>
> I tried both the Intersects as well as the WITHIN Filter with the
> filtertype
> as suggested by you.
>
> In both cases I get the same result i.e Intersects does not give me only
> the
> intersecting features and Within does not give me only the features
> completely within the selection.
>
> It could be possibly because I am not able to give the property and value
> PARAMETERS and so it doesn't work.
>
> So I think it is important to provide the two values.
>
> So pls provide the code so that it gets the required values.
>
> Thanks.
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Spatial-Filter-parameter-for-WFS-GetFeature-tp4968446p4968690.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Spatial Filter parameter for WFS GetFeature

2010-04-27 Thread bartvde
Hi,

you need to specify filterType. The control will take care of providing
the values. So:

var control = new OpenLayers.Control.GetFeature({
  ..
  filterType: OpenLayers.Filter.Spatial.INTERSECTS
  ..
});

Best regards,
Bart

>
> Dear Friends,
>
> I am trying to apply spatial filter to my GEtfeature requests on WFS layer
> atop a WMS.
>
> If I look at the spatial filter documentation
>
> http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Filter/Spatial-js.html
> http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Filter/Spatial-js.html
>
> I find that there are 3 things that need to be mentioned in all except the
> DWITHIN filter.
>
> What do I specify for 1) property 2) value parameter of the Spatial Filter
> constructor.
>
> The value parameter  requires either bounds or the geometry.How do I get
> that for the box I am creating?
>
> My code is:
>
>  control = new OpenLayers.Control.GetFeature({
>
>protocol: OpenLayers.Protocol.WFS({
>
>formatOptions: {
>outputFormat: "text/xml"
>},
>url:
> "/cgi-bin/mapserv.exe?map=c:/ms4w/apache/htdocs/Shape/Rail_wfs.map",
>featureType: 'RailwayStations',
>featurePrefix: 'ms',
>geometryName: 'msgeometry',
>maxFeatures: 100,
>var defaultFilter: new OpenLayers.Filter.Spatial({
> type: OpenLayers.Filter.Spatial.INTERSECTS})
>}),
>box: true,
>multipleKey: "shiftKey"
>
>});
>
> Pls change the defaultFilter so that it gets the above two parameters.
>
> What is the purpose of BBOX Filter?
> How to use the "buffer" parameter for getting feature details outside of
> the
> box?
>
> Thanks for your attention & efforts.
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Spatial-Filter-parameter-for-WFS-GetFeature-tp4968446p4968446.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] control.SelectFeature

2010-04-27 Thread bartvde
I've got some code lying around to do circle selection with the GetFeature
control. If anybody is interested I can open up a ticket with a patch.

Some handlers have a persist option which indicate whether or not the
drawn geometry should persist (not be cleared after drawing), however the
box Handler (used by the GetFeature Control in box mode) does not have it
currently.

Circle uses the RegularPolygon handler, and that one can persist if you want.

Best regards,
Bart

> Hi,
>
> I think you cannot use a circle instead of a box. But you can change your
> code to do a GeFeature-request with a filter, so you can request your
> features around a circle area.
> To question 1: I had same occurrence with the fast disappearing box- but I
> think that has to do with event and style for wfs layer (see my other
> post).
>
> Hope that helped a little bit.
>
> best regards
> Sarah
>
>
>
>
> 
> Von: sunny74 
> An: users@openlayers.org
> Gesendet: Dienstag, den 27. April 2010, 8:09:09 Uhr
> Betreff: Re: [OpenLayers-Users] control.SelectFeature
>
>
> 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 the WFS
> layer I get the information about the features.
> My problems are:
>
> 1) When I drag a mouse a box is created but it goes off as soon as I leave
> it.I want a permanent layer over the position of selection.
>
> 2) I want to have a circle instead of a box for selection.
>
> You can look at my code in my post,
>
> http://osgeo-org.1803224.n2.nabble.com/WFS-GEtFeature-layer-not-showing-on-map-td4921150.html#a4921150
> http://osgeo-org.1803224.n2.nabble.com/WFS-GEtFeature-layer-not-showing-on-map-td4921150.html#a4921150
>
> Thanks again.
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/control-SelectFeature-tp4930933p4966806.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] IE8 problem with VMS

2010-04-23 Thread bartvde
Do you have a minimal example (HTML page) showing your problems?

Best regards,
Bart

> Moreover, the problem in Elements.js: 857 still arises.
>
> On Fri, Apr 23, 2010 at 4:05 PM, Enrico Sartorello <
> enrico.sartore...@gmail.com> wrote:
>
>> I'm rendering something like 30-40 features, all squares filled with a
>> color.
>>
>> I don't think it's a problem of resources because if I use "EmulateIE7"
>> the
>> layer is displayed quite smoothly (but I have some other compatibility
>> issues), and also with the other browsers I don't have problems at all.
>>
>>
>> On Fri, Apr 23, 2010 at 3:52 PM,  wrote:
>>
>>> How many features are you rendering, and how complex are there
>>> geometries?
>>>
>>> VML is known to be slow unfortunately, so you're easily running into
>>> the
>>> browser's limits here.
>>>
>>> Best regards,
>>> Bart
>>>
>>> > Thank you very much: now using the hosted version (r10129) I can get
>>> it
>>> > work, but with other problems.
>>> >
>>> > The problem is that the vector layer loading is very very slow: IE
>>> takes
>>> > all
>>> > the CPU and runs for a very long time before rendering all. After
>>> getting
>>> > the layer rendered, the navigation on the layer is extremely slow as
>>> well.
>>> >
>>> > I've tried some patches for memory leaks (
>>> > http://trac.openlayers.org/ticket/2170) without any results.
>>> >
>>> > Again, this is a problem only experienced with IE8.
>>> >
>>> > What should I do?
>>> >
>>> > On Fri, Apr 23, 2010 at 2:46 PM, Frank Broniewski 
>>> wrote:
>>> >
>>> >> Hello,
>>> >>
>>> >> try to make sure that you start the map initialisation when
>>> everything
>>> >> else is loaded. I used to use Jquery's $(document).ready() but
>>> needed
>>> to
>>> >> switch to $(window).load() because ready() fired to early ...
>>> >>
>>> >> Frank
>>> >>
>>> >> Am 23.04.2010 13:56, schrieb Enrico Sartorello:
>>> >> > Hi,
>>> >> >
>>> >> > I'm experiencing some troubles using OL 2.9 with IE8.
>>> >> > I'm trying to add to my OpenLayers map a vector layer: it works
>>> >> > perfectly on FF\Chrome, but in IE8 there's an error.
>>> >> >
>>> >> > Inside map.addLayer() call, the problem arises in VML.js, lines
>>> >> 147-160:
>>> >> > basically, what I've found debugging is that vars this.root,
>>> >> > this.vectorRoot, this.textRoot have all the attributes (even
>>> style,
>>> >> > which is the one used in those lines) set to "Failed". Only
>>> >> > this.rendererRoot has right values.
>>> >> >
>>> >> > The vector layer is loaded after window.onload, coupled with the
>>> >> opening
>>> >> > of an AJAX panel.
>>> >> > Using "EmulateIE7" mode doesn't solve anything.
>>> >> >
>>> >> > What can it be?
>>> >> > Thanks in advance for your attention :-)
>>> >> >
>>> >> > --
>>> >> > Enrico Sartorello
>>> >> >
>>> >> >
>>> >> >
>>> >> > ___
>>> >> > Users mailing list
>>> >> > Users@openlayers.org
>>> >> > http://openlayers.org/mailman/listinfo/users
>>> >>
>>> >>
>>> >> --
>>> >> Frank BRONIEWSKI
>>> >>
>>> >> METRICO s.à r.l.
>>> >> géomètres
>>> >> technologies d'information géographique
>>> >> rue des Romains 36
>>> >> L-5433 NIEDERDONVEN
>>> >>
>>> >> tél.: +352 26 74 94 - 28
>>> >> fax.: +352 26 74 94 99
>>> >> http://www.metrico.lu
>>> >> ___
>>> >> Users mailing list
>>> >> Users@openlayers.org
>>> >> http://openlayers.org/mailman/listinfo/users
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Enrico Sartorello
>>> > ___
>>> > Users mailing list
>>> > Users@openlayers.org
>>> > http://openlayers.org/mailman/listinfo/users
>>> >
>>>
>>>
>>>
>>
>>
>> --
>> Enrico Sartorello
>>
>
>
>
> --
> Enrico Sartorello
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] IE8 problem with VMS

2010-04-23 Thread bartvde
How many features are you rendering, and how complex are there geometries?

VML is known to be slow unfortunately, so you're easily running into the
browser's limits here.

Best regards,
Bart

> Thank you very much: now using the hosted version (r10129) I can get it
> work, but with other problems.
>
> The problem is that the vector layer loading is very very slow: IE takes
> all
> the CPU and runs for a very long time before rendering all. After getting
> the layer rendered, the navigation on the layer is extremely slow as well.
>
> I've tried some patches for memory leaks (
> http://trac.openlayers.org/ticket/2170) without any results.
>
> Again, this is a problem only experienced with IE8.
>
> What should I do?
>
> On Fri, Apr 23, 2010 at 2:46 PM, Frank Broniewski  wrote:
>
>> Hello,
>>
>> try to make sure that you start the map initialisation when everything
>> else is loaded. I used to use Jquery's $(document).ready() but needed to
>> switch to $(window).load() because ready() fired to early ...
>>
>> Frank
>>
>> Am 23.04.2010 13:56, schrieb Enrico Sartorello:
>> > Hi,
>> >
>> > I'm experiencing some troubles using OL 2.9 with IE8.
>> > I'm trying to add to my OpenLayers map a vector layer: it works
>> > perfectly on FF\Chrome, but in IE8 there's an error.
>> >
>> > Inside map.addLayer() call, the problem arises in VML.js, lines
>> 147-160:
>> > basically, what I've found debugging is that vars this.root,
>> > this.vectorRoot, this.textRoot have all the attributes (even style,
>> > which is the one used in those lines) set to "Failed". Only
>> > this.rendererRoot has right values.
>> >
>> > The vector layer is loaded after window.onload, coupled with the
>> opening
>> > of an AJAX panel.
>> > Using "EmulateIE7" mode doesn't solve anything.
>> >
>> > What can it be?
>> > Thanks in advance for your attention :-)
>> >
>> > --
>> > Enrico Sartorello
>> >
>> >
>> >
>> > ___
>> > Users mailing list
>> > Users@openlayers.org
>> > http://openlayers.org/mailman/listinfo/users
>>
>>
>> --
>> Frank BRONIEWSKI
>>
>> METRICO s.à r.l.
>> géomètres
>> technologies d'information géographique
>> rue des Romains 36
>> L-5433 NIEDERDONVEN
>>
>> tél.: +352 26 74 94 - 28
>> fax.: +352 26 74 94 99
>> http://www.metrico.lu
>> ___
>> Users mailing list
>> Users@openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>
>
>
> --
> Enrico Sartorello
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Hungarian translation

2010-04-21 Thread bartvde
Hi,

there is already a hungarian translation in 2.9.

http://trac.openlayers.org/browser/branches/openlayers/2.9/lib/OpenLayers/Lang/hu.js

Best regards,
Bart

> Hi All,
>
> I need an OpenLayers.Lang.hu Hungarian dictionary. If I translate the
> .en and send it to you, will it be included in the next 2.9 release?
> If yes, is UTF-8 the desired encoding?
>
> best regards: Balázs Bámer
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] LayerSwitcher in OpenLayers2.9.RC2 in wrong place on the map

2010-04-15 Thread bartvde
Did you update your theme directory?

The css has changed (things have been moved in to css from the
LayerSwitcher).

Best regards,
Bart

>
> Hi!
>
> I have been wondering how come my layer switcher appears in left top
> corner
> of the map. It does not look good. Here is screen:
>
> http://img171.imageshack.us/img171/303/errir1.png
>
> When I open it it looks like this:
>
> http://img512.imageshack.us/img512/994/error2l.png
>
> In version 2.8 of Openlayers I did not have this kind of problems. I had
> my
> layer switcher in the right top corner and everything was working fine...
> Is
> there a way to fix this??
>
> Regards,
> Poul
> --
> View this message in context:
> http://n2.nabble.com/LayerSwitcher-in-OpenLayers2-9-RC2-in-wrong-place-on-the-map-tp4906606p4906606.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Projections in Example Code

2010-04-13 Thread bartvde
Hi,

if you are using EPSG:4326 (the default) you don't need to specify
projection nor displayProjection in the Map constructor. Leave them out
all together.

Best regards,
Bart

>
> Hi,
>
> really nobody an answer? I couldn't find anything on the web in regards to
> this. Have I been completely blind? Any pointer is highly appreciated.
>
> Thanks,
> K.
> --
> View this message in context:
> http://n2.nabble.com/Projections-in-Example-Code-tp4876700p4895575.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] ArcIMS thematic mapping example on Mapserver

2010-04-08 Thread bartvde
Hi,

what you want is possible with SLD, but you need to read about it a bit more.

Check out for instance this stuff from the FOSS4G 2009 conference in Sydney:

http://download.osgeo.org/osgeo/foss4g/2009/SPREP/1Wed/Parkside%20GO3/1300/

Best regards,
Bart

>
> Hi Bart van den,
>
> Thanks for your reply.
> I went thru' the code of the link you have given.
>
> It is like this:
>
>  var sld = '';
> sld+= '';
> sld+= 'topp:tasmania_roads';
> sld+= '';
> sld+= '1';
> sld+= '';
> sld+= '';
> sld+= '';
> sld+= '';
> sld+= '';
> sld+= '#787878';
> sld+= '';
> sld+= '';
> sld+= '2';
> sld+= '';
> sld+= '';
> sld+= '';
> sld+= '';
> sld+= '';
> sld+= '';
>
> Now in this case I see that there is a  which is a layer and
> the
> styles corresponding to it.
> But my case case is different.
>
> I have a single layer and within that there are different features.How can
> I
> be able to access the different features within a single layer i.e not
> different layers as shown in this example.
> Once I am able to access the different features within a WMS layer I can
> apply different styles to each of them.
>
> It seems that I need to maintain a stylesheet corresponding to
> ';
> What is ,?
> Are these styles mentioned in stylesheet?
> Pls send a sample stylesheet which works with SLD.
> Is there an example of what I am looking for?
>
> Thanks.
> --
> View this message in context:
> http://n2.nabble.com/ArcIMS-thematic-mapping-example-on-Mapserver-tp4871120p4875293.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] ArcIMS thematic mapping example on Mapserver

2010-04-08 Thread bartvde
This can be done using SLD, Styled Layer Descriptor, see e.g.

http://openlayers.org/dev/examples/WMSPost.html

Best regards,
Bart

>
> Dear Friends,
>
> I want to create ArcIMS thematic mapping example using Mapserver and
> Openlayers.
>
> The example link is
> http://dev.openlayers.org/releases/OpenLayers-2.8/examples/arcims-thematic.html
>
> There is no such example for Openlayers with Mapserver or geoserver.
> Has some one created such a thing using Mapserver and Openlayers?
> If so let me know.If some one has any idea abt how to do it pls share with
> me even if you have not done it.
>
> Thanks for your attention and efforts.
> --
> View this message in context:
> http://n2.nabble.com/ArcIMS-thematic-mapping-example-on-Mapserver-tp4871120p4871120.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


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 OpenLayers.Protocol.HTTP({
url: "../aramus_data/vector/gml/isoipse_2498.gml",
projection: epsg2498,
format: new OpenLayers.Format.GML({xy: false})
   })
});

Best regards,
Bart

> 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 libraries:
>
> - OpenLayers-2.8/OpenLayers.js
> - http://www.openstreetmap.org/openlayers/OpenStreetMap.js
> - proj4js.js
> - proj4s/lib/defs/EPSG2498.js
>
> And this is a snippet of my map code [1].
>
> The problem is that my gml is in the north of Africa instead of Armenia.
> I've tried with qgis and the layer is correctly positioned, so I suppose
> that the problem is in the code, but I' m not able to detect the bug!!!
>
> thanks
>
> -beppe -
>
> [1] function init() {
> var epsg2498= new OpenLayers.Projection("EPSG:2498");
> var epsg900913= new OpenLayers.Projection("EPSG:900913");
> var epsg4326= new OpenLayers.Projection("EPSG:4326");
>
>var bounds = new OpenLayers.Bounds(44.532, 40.144, 45.038,
> 40.423).transform(epsg4326, epsg900913);
>
>map = new OpenLayers.Map ("map", {
>controls:[
>new OpenLayers.Control.Navigation(),
>new OpenLayers.Control.LayerSwitcher({activeColor:"#729aa1"}),
>new
> OpenLayers.Control.MousePosition({div:document.getElementById("coord")}),
>new OpenLayers.Control.Attribution()],
>
>maxExtent: bounds,
>maxResolution: 156543.0399,
>numZoomLevels: 5,
>minZoomLevel: 3,
>maxZoomLevel: 8,
>units: 'm',
>projection: epsg900913,
>displayProjection: epsg2498
>} );
>
>
>var layerCycleMap = new OpenLayers.Layer.OSM.CycleMap("CycleMap");
> map.addLayer(layerCycleMap);
>
>var layerTilesAtHome = new
> OpenLayers.Layer.OSM.Osmarender("Osmarender");
>map.addLayer(layerTilesAtHome);
>
>var layerMapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik");
>map.addLayer(layerMapnik);
>
> var isoline = new OpenLayers.Layer.Vector("isoline", {
>strategies: [new OpenLayers.Strategy.Fixed()],
>protocol: new OpenLayers.Protocol.HTTP({
>url: "../aramus_data/vector/gml/isoipse_2498.gml",
>projection: epsg2498,
>format: new OpenLayers.Format.GML()
>})
>});
>isoline = OpenLayers.Projection.transform(isoline, epsg2498,
> map.projection);
> map.addLayer(isoline);
> 
> 
> 
> --
> -beppe-
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Control outside map

2010-04-06 Thread bartvde
Hi,

if you look at GeoExt actions you can see a way to do this (i.e. the
concept could be usable):

http://svn.geoext.org/core/trunk/geoext/lib/GeoExt/widgets/Action.js

Best regards,
Bart

> Hi,
> i'm working on a DojoToolkit project and i would like to have the controls
> (like draw point, draw polyigon, etc) in a dojo-button.
> is there an "easy" way to achieve that?
>
> Also i was looking for a way to "start an action programatically, that is,
> somebody clicks my button and programtically i start the draw point
> action.
>
> Thanks in advance for any ideas.
>
> --
> |---
> | http://www.astracanada.net
> | http://acuriousanimal.orggeo.net
> |---
> | http://acuriousanimal.blogspot.com
> | http://theballoonproject.blogspot.com
> |---
> |  _  __
> | /_|(  _  _/'_ _
> |(  |.  __)(//)//(/(/()
> |   _/
> |---
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


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

2010-04-01 Thread bartvde
Hi Arnd,

thanks for your report. I've tracked that change down to:

http://trac.openlayers.org/changeset/10044

Tim, are you able to comment on Arnd's suggestion (see below)? TIA.

Best regards,
Bart

> Hi Bart,
>
> I use the center parameter of the map options to store the center of my
> map.
> After adding my layers to the map I use map.setCenter with this
> coordinate.
>
> With the OpenLayers 2.9 RC1 library, this raise an error "maxExtent is
> null", because if center is set in the options, this.setCenter is called
> at
> the end of the initialize-function. But then I have not added any layer to
> the map.
>
> It seems, that this will only work, if the layers parameter is also set in
> the map options.
>
> http://gis.ibbeck.de/OLClient/examples/testMapCenter_29_RC1.html
>
> I would suggest, that the setCenter in the init function should only be
> called, if this.options.layers != null.
>
> // add any initial layers
> if (options && options.layers) {
> this.addLayers(options.layers);
> }
>
> // set center (and optionally zoom)
> if (options && options.layers && options.center) {
> // zoom can be undefined here
> this.setCenter(options.center, options.zoom);
> }
>
>
> And I have noticed, that with exchange of the OpenLayers.js from 2.8 to
> 2.9,
> also the style.css have to be taken fom 2.9 with the css for the
> LayerSwitcher control.
>
> Otherwise it seems, that 2.9 works like 2.8. A great job from the
> OpenLayers
> developers.
>
> Arnd
>
>
>
>
> -Ursprüngliche Nachricht-
> Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im
> Auftrag von Bart van den Eijnden
> Gesendet: Mittwoch, 31. März 2010 18:01
> An: openlayers; users user
> Betreff: [OpenLayers-Users] please help us test OpenLayers 2.9RC1
>
> This is a reminder to everyone that OpenLayers 2.9 RC1 is out (since last
> Friday), please help us test this release candidate by upgrading your
> applications to 2.9RC1 and reporting any issues to us.
>
> See also:
> http://trac.openlayers.org/wiki/Release/2.9/Announce/RC1
>
> Thanks in advance!
>
> Best regards,
> Bart
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] OpenLayers 2.9 Release Candidate 1

2010-04-01 Thread bartvde
Hi Rui,

what is the problem you see here then? Can you please elaborate?

Best regards,
Bart

>
> i'm here trying to test 2.9RC1
> found a problem... could it be!? --> OpenLayers.Layer.Google.cache = {};
> google.js line 149var cache =
> OpenLayers.Layer.Google.cache[this.map.id]; object not found
> --
> View this message in context:
> http://n2.nabble.com/OpenLayers-2-9-Release-Candidate-1-tp4805148p4836533.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] getFeatureCount function?

2010-03-23 Thread bartvde
Hi,

you need to listen to the loadend event of the layer, and then check the
number of features.

layer.events.register("loadend", layer, function() {
alert(this.features.length); });

Best regards,
Bart

> mmm... yes, I tried with layer.features.length but always returns 0.
> I explain you: based on the example of SOSClient
> (http://openlayers.org/dev/examples/sos.html), I want to count how many
> features obtained in the resulting layer of the GetCapabilities request:
>
>
> parseSOSCaps: function(response) {
> // cache capabilities for future use
> this.SOSCapabilities =
> this.capsformat.read(response.responseXML || response.responseText);
>
> this.layer = new OpenLayers.Layer.Vector(\"Stations\", {
> strategies: [new OpenLayers.Strategy.Fixed()],
> protocol: new OpenLayers.Protocol.SOS({
> formatOptions: {internalProjection:
> map.getProjectionObject()},
> url: this.url,
> fois: this.getFois()
> })
> });
> alert('Number of FOI's: '
> +this.layer.features.length);   //--->always returns 0, but on the map
> appear 7 features.
>
>
>
> bart...@osgis.nl escribió:
>> What type of layer? Layer.Vector?
>>
>> Try layer.features.length.
>>
>> Best regards,
>> Bart
>>
>>
>>> Hi all,
>>> exists any function to obtain the number of features of a Layer?
>>> F.ex:  map.layers[i].getFeatureCount
>>>
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Users mailing list
>>> Users@openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>>
>>>
>>
>>
>>
>
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] How to get only attributes from WMS or WFS in Openlayers

2010-03-23 Thread bartvde
Hi,

you can specify propertyNames on the options when you call
OpenLayers.Format.WFST write to only get a list of attributes back.

See also:
http://trac.openlayers.org/ticket/1827

I use a WFS DescribeFeatureType request to get the list of attributes and
then I filter out the geometry attribute so that I don't need to hardcode
the list of attributes.

Best regards,
Bart

>
> I need the attributes of a WFS or WMS without getting the geometry. If I
> load
> it with a normal WFS-Layer it takes to long downloading all the
> geometries.
> Is there a easy way getting only the attributes?
>
> Thanks for help!
> --
> View this message in context:
> http://n2.nabble.com/How-to-get-only-attributes-from-WMS-or-WFS-in-Openlayers-tp4783727p4783727.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] getFeatureCount function?

2010-03-23 Thread bartvde
What type of layer? Layer.Vector?

Try layer.features.length.

Best regards,
Bart

> Hi all,
> exists any function to obtain the number of features of a Layer?
> F.ex:  map.layers[i].getFeatureCount
>
>
>
>
>
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] wfs response.features empty

2010-03-23 Thread bartvde
Hi,

featureNS is a URI, not the prefix like you have defined.

Check examples/wfs-protocol.html.

Best regards,
Bart

> Hi list,
>
> I want to load a wfs layer in my map.
> var wfs = new OpenLayers.Layer.Vector("wfs",
> {styleMap: styleMap,
> strategies: [new OpenLayers.Strategy.Fixed()],
> protocol: new OpenLayers.Protocol.WFS({
> url: "http://myserver:81/geoserver/wfs?";,
> featureNS: "gn",
> featureType: "mylayer",
> geometryName: "SHAPE",
> version: "1.1.0",
> srsName: "EPSG:4326"
> }),
> projection: new OpenLayers.Projection("EPSG:4326") //like my map
> });
>
> But I can see a response at firebug but response.features is empty:
> wfs.protocol.read({
> callback: function(response){
> if(response.success(){
> var features = response.features; //is empty
> } else {
> alert("failure!)
> }
> }
> });
> My code is at geoservers www folder (geoserver is at Tomcat 6 on win).
> FeatureInfo works fine.
> Is this a matter of proxyhost?
>
> Thanks.
> best regards
> Sarah
>
>
> __
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
> gegen Massenmails.
> http://mail.yahoo.com ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] SaveStrategy does not work - WFSProtocol with Vector Layer

2010-03-19 Thread bartvde
I think you should ask this question on the Geoserver list.

The OpenLayers side of things looks okay to me.

Best regards,
Bart

>
> Hi!
>
> I am using Postgis, Geoserver and Openlayers 2.8. I create my simple
> application based on this example
> http://dev.openlayers.org/releases/OpenLayers-2.8/examples/wfs-protocol-transactions.html.
> I can see the vector on map, I can get the object attributes from the
> feature I clicked on, but I have problem with adding new data to the
> database.
> When I click the add button the new row is added to the table in my
> database
> but the row is empty without any data...
>
> My code:
>
> var saveStrategy = new OpenLayers.Strategy.Save();
>
>   var  wfsproba = new OpenLayers.Layer.Vector("Vector Layer", {
> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
> projection: new OpenLayers.Projection("EPSG:4326"),
>   styleMap: wfs_style,
> protocol: new OpenLayers.Protocol.WFS({
> version: "1.1.0",
> srsName: "EPSG:4326",
> url: "http://localhost:8080/geoserver/wfs";,
> featureNS :  "http://www.openplans.org/topp";,
> featureType: "probabaza",
> geometryName: "the_geom",
> schema:
> "http://localhost:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=topp:probabaza";,
> })
> });
> drawControls = {
>line: new OpenLayers.Control.DrawFeature(
>  wfsproba, OpenLayers.Handler.Path)};
> for(var key in drawControls) {
> map.addControl(drawControls[key]);}
> // On button click
>   function addobject() {
>   saveStrategy.save();
>   }
>
> This think is really weird because in firebug I got information that data
> was added to the database.
> Here is info:
>
> Source:
> http://www.opengis.net/wfs"; service="WFS"
> version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs
> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd http://www.openplans.org/topp
> http://localhost:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=topp:probabaza";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> 
> http://www.openplans.org/topp";>
> 
> http://www.opengis.net/gml";
> srsName="EPSG:4326">15.542907714844 51.947650889872
> 15.542907714844 51.942995059059
> 
> 
> 
> 
>
> Response
> 
>  xsi:schemaLocation="http://www.opengis.net/wfs
> http://localhost:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd";
> xmlns:ogc="http://www.opengis.net/ogc"; xmlns:tiger="http://www.census.gov";
> xmlns:wfs="http://www.opengis.net/wfs";
> xmlns:topp="http://www.openplans.org/topp";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:sf="http://www.openplans.org/spearfish";
> xmlns:ows="http://www.opengis.net/ows";
> xmlns:gml="http://www.opengis.net/gml";
> xmlns:xlink="http://www.w3.org/1999/xlink";>
> 1
> 0
> 0
> 
> 
> 
> 
> 
> 
> 
> 
>
> As you can see I got info that there was one object insertet, but in my
> database all I got in new empty rows... When I add 5 new geometry and got
> 5
> new empty rows in my database... In firebug I got info that I had inserted
> 5
> new object.
> Maybe I should "tell" savestategy in what column the geometry should be
> inserted I have no idea... My geometry column is named 'the_geom'.
>
> Why is that? Cane anybody please help me
>
> Regards,
> Poul
> --
> View this message in context:
> http://n2.nabble.com/SaveStrategy-does-not-work-WFSProtocol-with-Vector-Layer-tp4762666p4762666.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] zoomToScale Issue

2010-03-18 Thread bartvde
Hi,

how is your map instantiated? With a fixed set of scales/resolutions?

Or are you using fractionalZoom: true in your map config?

Best regards,
Bart

> All,
>
> I'm using OpenLayers (latest trunk version) with GeoServer 2.0.1 to
> display
> various layers which have scale rules defined on them within the GeoServer
> SLD (i.e. MaxScaleDenominator and / or MinScaleDenominator).
>
> I initially found that the scale in OpenLayers didn't match that in
> GeoServer but I have followed the steps outlined in this post
> http://openlayers.org/pipermail/users/2008-October/008453.html and as such
> added the following line before I use any of the OpenLayers classes:
>
> OpenLayers.DOTS_PER_INCH = 25.4 / 0.28;
>
> This means that the scale displayed by OpenLayers now matches that used by
> GeoServer to one / two decimal places.
>
> However, I have found that the map.zoomToScale function no longer works as
> expected. As such when I invoke map.zoomToScale(4578, false) the map zooms
> to a scale of 1:6800 instead of 4578 as expected.
>
> Does anybody have any ideas as to what I am doing wrong? Do I need to
> change
> something in addition to OpenLayers.DOTS_PER_INCH?
>
> Thanks
>
> Andrew
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Doubt with SOSCapabilities

2010-03-17 Thread bartvde
Ok, I get what you mean now.

However, I can not deduct from the GetCapabilities response that DISTANCE
is only applicable for that feature of interest.

What interface (request) does a SOS have to get that information
programmatically? If you do not know, maybe you can ask on the 52N list.

But currently this is not possible using the OpenLayers SOS client,
however if you find out exactly how to implement this, and open up a bug
in the OpenLayers Trac, I am willing to have a look at implementing it.

TIA.

Best regards,
Bart

> Yes, my SOS structure is a little bit different. You can see my SOS's
> GetCapabilites response here: http://pastebin.com/vwr3nx37
>
> An example of my question is at this tag (line #750):
>
> 
>
> where the offering named "DISTANCE" has 10 procedures, of which only one
> really belongs to feature 'foi_k2m_contenedor' (the other nine
> procedures are from other features).
> When I click over the point 'foi_k2m_contenedor' in the map, I see a
> popup in which they appear all 10 procedures. I just want to see the
> procedure that belongs to 'foi_k2m_contenedor' feature. It's possible?
>
> Thanks for all.
>
>
> bart...@osgis.nl escribió:
>> Hi,
>>
>> not sure I really get your question, can you elaborate a bit? Is this
>> something you can read from the GetCapabilities, or the info needs to be
>> retrieved through a request on the SOS? If so, which request, and do you
>> have an example XML request?
>>
>> If I understand things correctly, in the example SOS used one feature of
>> interest has exactly one procedure, and they have the same id.
>>
>> Is your SOS structure different, and if so, can you post your SOS's
>> GetCapabilities response using something like pastebin? TIA.
>>
>> Best regards,
>> Bart
>>
>>
>>> Hi all,
>>>
>>> Following the example (http://openlayers.org/dev/examples/sos.html),
>>> I'm
>>> using OpenLayers.js to connect by my local SOS which is based to
>>> 52North
>>> model, and it works correctly.
>>>
>>> I have seen the result of the GetCapabilities request is an array of
>>> "offerings", and within each offering there are two separate arrays:
>>> the
>>> "features of interest" and the "procedures" related with this offering.
>>>
>>> In the map, I can see the points that represents the "features of
>>> interest". When I click over a point, due to each feature can have one
>>> or more "offerings" associated, in the popup I see all the procedures
>>> related by all offerings of this FoI.
>>>
>>> My question is:
>>> There are any way to directly obtain only the "procedures" of a
>>> "feature
>>> of interest" regardless the offerings?
>>>
>>> Thank you very much.
>>> ___
>>> Users mailing list
>>> Users@openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>>
>>>
>>
>>
>>
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Doubt with SOSCapabilities

2010-03-16 Thread bartvde
Hi,

not sure I really get your question, can you elaborate a bit? Is this
something you can read from the GetCapabilities, or the info needs to be
retrieved through a request on the SOS? If so, which request, and do you
have an example XML request?

If I understand things correctly, in the example SOS used one feature of
interest has exactly one procedure, and they have the same id.

Is your SOS structure different, and if so, can you post your SOS's
GetCapabilities response using something like pastebin? TIA.

Best regards,
Bart

> Hi all,
>
> Following the example (http://openlayers.org/dev/examples/sos.html), I'm
> using OpenLayers.js to connect by my local SOS which is based to 52North
> model, and it works correctly.
>
> I have seen the result of the GetCapabilities request is an array of
> "offerings", and within each offering there are two separate arrays: the
> "features of interest" and the "procedures" related with this offering.
>
> In the map, I can see the points that represents the "features of
> interest". When I click over a point, due to each feature can have one
> or more "offerings" associated, in the popup I see all the procedures
> related by all offerings of this FoI.
>
> My question is:
> There are any way to directly obtain only the "procedures" of a "feature
> of interest" regardless the offerings?
>
> Thank you very much.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] nsIXMLHttpRequest, NS_ERROR_NOT_INITIALIZED with Vector and WFS layer

2010-03-16 Thread bartvde
See also:

http://trac.openlayers.org/ticket/2065

Best regards,
Bart

> Hi Poul,
>
> A few months ago i added a patch for this problem, you can find it
> mentioned in this thread:
> http://n2.nabble.com/Error-when-using-XMLHTTPRequest-td3506570.html
>
> Cheers Kris
>
> -Original Message-
> From: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org]
> On Behalf Of paweluz
> Sent: Monday, March 15, 2010 9:50 PM
> To: users@openlayers.org
> Subject: Re: [OpenLayers-Users] nsIXMLHttpRequest,
> NS_ERROR_NOT_INITIALIZED with Vector and WFS layer
>
>
> I just want to say that I have tried with and without a proxy (geoserver
> an
> my application both on the same server), and the problem still
> appears...
>
> Maybe someone had this problem ...
> Poul
> --
> View this message in context:
> http://n2.nabble.com/nsIXMLHttpRequest-NS-ERROR-NOT-INITIALIZED-with-Vec
> tor-and-WFS-layer-tp4733242p4739699.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Write a KML file in proper projection.

2010-03-15 Thread bartvde
Right, it's as simple as that.

Although for proj4js I use a custom build with the projections I use in my
application compiled into the javascript build.

Proj4js by default will get definitions from spatialreference.org.

Best regards,
Bart

>
> Are there any examples of using Proj4js with OpenLayers anywhere?
> Or is it as simple as just including the proj4js javascript file?
>
> - Kristian Frost
> --
> View this message in context:
> http://n2.nabble.com/Write-a-KML-file-in-proper-projection-tp4736343p4736599.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Write a KML file in proper projection.

2010-03-15 Thread bartvde
Right, you need to use proj4js since you have a custom projection
(ESPG:25832) which is not supported by OL out of the box.

Best regards,
Bart

>
> Thanks for the quick answer, Bart, I really appreciate it :)
>
> When i try to do it like this:
> var format = new OpenLayers.Format.KML({
>   externalProjection: new OpenLayers.Projection("ESPG:900913"),
>   internalProjection: new OpenLayers.Projection("ESPG:25832")
> });
> It's still not working. Is this because I'm doing it wrong, or because I'm
> not using proj4js/custom transformations?
> --
> View this message in context:
> http://n2.nabble.com/Write-a-KML-file-in-proper-projection-tp4736343p4736428.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Write a KML file in proper projection.

2010-03-15 Thread bartvde
Define internalProjection and externalProjection on your format:

/**
 * APIProperty: externalProjection
 * {} When passed a externalProjection and
 * internalProjection, the format will reproject the geometries it
 * reads or writes. The externalProjection is the projection used by
 * the content which is passed into read or which comes out of write.
 * In order to reproject, a projection transformation function for
the
 * specified projections must be available. This support may be
 * provided via proj4js or via a custom transformation function. See
 * {} for more information on
 * custom transformations.
 */
externalProjection: null,

/**
 * APIProperty: internalProjection
 * {} When passed a externalProjection and
 * internalProjection, the format will reproject the geometries it
 * reads or writes. The internalProjection is the projection used by
 * the geometries which are returned by read or which are passed into
 * write.  In order to reproject, a projection transformation
function
 * for the specified projections must be available. This support
may be
 * provided via proj4js or via a custom transformation function. See
 * {} for more information on
 * custom transformations.
 */
internalProjection: null,

Best regards,
Bart

>
> Hi all.
>
> I have a vectorlayer with a drawFeature control.
> When a user has drawn something onto the layer I use the following code to
> get the KML:
> var format = new OpenLayers.Format.KML();
> var markup = format.write(redliningLayer.features);
> Now, this KML is using my baselayers projection (EPSG:25832) which is
> pretty
> useless if I try to render it in eg. Google Earth.
> Is it possible to save KML in another projection than the baselayer?
> --
> View this message in context:
> http://n2.nabble.com/Write-a-KML-file-in-proper-projection-tp4736343p4736343.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WFS Layer / Vector Layer

2010-03-10 Thread bartvde
Hi Andrew,

nope, only POST is supported. Why would you want GET? I had this
discussion with Tim Schaub in the past and I could not think of a good
reason why I wanted GET if POST also works for the WFS product. Maybe you
have a good reason though?

Best regards,
Bart

> Bart,
>
> Thanks for that your first suggestion seems to have resolved the problem
> and
> I can now see the requests in Fiddler :)
>
> Is there a way to force the WFS layer to use HTTP Get rather than Post for
> requests?
>
> Thanks
>
> Andrew
>
> On 10 March 2010 10:29,  wrote:
>
>> Hi,
>>
>> don't use the namespace prefix in the featuretype.
>>
>>{
>>url:  "/MyApp/Proxy.ashx",
>>featureType: "boundary",
>>featurePrefix: "mystore",
>>version: "1.1.0"
>>})
>>
>> If this does not work, try specifying the featureNS (so the
>> corresponding
>> URI) explicityl.
>>
>> Best regards,
>> Bart
>>
>> > All,
>> >
>> > I'm relatively new to OpenLayers and I have downloaded version 2.8
>> from
>> > the
>> > website (Revision 9492) and I am attempting to use it with GeoServer
>> > 2.0.1.
>> >
>> > I have successfully added an OpenLayers.Layer.WFS layer using the
>> > following:
>> >
>> > var wfsLayer = new OpenLayers.Layer.WFS( "WFS", "/MyApp/Proxy.ashx",
>> > { typeName: "mystore:boundary" },
>> > {projection: new OpenLayers.Projection("EPSG:27700"), maxExtent: new
>> > OpenLayers.Bounds(0, 0, 1300, 1300)}
>> > );
>> >
>> >
>> > However, I understand that OpenLayers.Layer.WFS is depreciated (from
>> the
>> > documentation) and that I should use a vector layer, as such I have
>> > written
>> > the following to add as a vector layer:
>> >
>> > var wfsLayer = new OpenLayers.Layer.Vector( "WFS", {
>> >   strategies: [new OpenLayers.Strategy.BBOX()],
>> >   projection: new OpenLayers.Projection("EPSG:27700"),
>> >   maxExtent: new OpenLayers.Bounds(0, 0, 1300, 1300),
>> >   protocol: new OpenLayers.Protocol.WFS(
>> >{
>> >url:  "/MyApp/Proxy.ashx",
>> >featureType: "mystore:boundary",
>> >version: "1.1.0"
>> >})
>> > });
>> >
>> > My problem is that the first method works fine but the second method
>> > doesn't
>> > seem to do anything. I have tested using IE7 and Firefox and fiddler
>> > doesn't
>> > report any traffic or requests to the Proxy URL.
>> >
>> > Any ideas?
>> >
>> > Thanks
>> >
>> > Andrew
>>  > ___
>> > Users mailing list
>> > Users@openlayers.org
>> > http://openlayers.org/mailman/listinfo/users
>> >
>>
>>
>>
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WFS Layer / Vector Layer

2010-03-10 Thread bartvde
Hi,

don't use the namespace prefix in the featuretype.

{
url:  "/MyApp/Proxy.ashx",
featureType: "boundary",
featurePrefix: "mystore",
version: "1.1.0"
})

If this does not work, try specifying the featureNS (so the corresponding
URI) explicityl.

Best regards,
Bart

> All,
>
> I'm relatively new to OpenLayers and I have downloaded version 2.8 from
> the
> website (Revision 9492) and I am attempting to use it with GeoServer
> 2.0.1.
>
> I have successfully added an OpenLayers.Layer.WFS layer using the
> following:
>
> var wfsLayer = new OpenLayers.Layer.WFS( "WFS", "/MyApp/Proxy.ashx",
> { typeName: "mystore:boundary" },
> {projection: new OpenLayers.Projection("EPSG:27700"), maxExtent: new
> OpenLayers.Bounds(0, 0, 1300, 1300)}
> );
>
>
> However, I understand that OpenLayers.Layer.WFS is depreciated (from the
> documentation) and that I should use a vector layer, as such I have
> written
> the following to add as a vector layer:
>
> var wfsLayer = new OpenLayers.Layer.Vector( "WFS", {
>   strategies: [new OpenLayers.Strategy.BBOX()],
>   projection: new OpenLayers.Projection("EPSG:27700"),
>   maxExtent: new OpenLayers.Bounds(0, 0, 1300, 1300),
>   protocol: new OpenLayers.Protocol.WFS(
>{
>url:  "/MyApp/Proxy.ashx",
>featureType: "mystore:boundary",
>version: "1.1.0"
>})
> });
>
> My problem is that the first method works fine but the second method
> doesn't
> seem to do anything. I have tested using IE7 and Firefox and fiddler
> doesn't
> report any traffic or requests to the Proxy URL.
>
> Any ideas?
>
> Thanks
>
> Andrew
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Corrupted selection in IE8

2010-03-10 Thread bartvde
Can you check if OpenLayers trunk still has this issue?

Bart

> Sorry for bumping this message, but I could really use a hint.
>
> More in detail:
>
> It happens when I select a feature. I highlight the selected feature and
> it looks okay. But when I change the zoomlevel, it gets distorted like
> seen in the previous links. Again, the problem is only in IE - not in FF.
>
> I hope one of you can tell me where to look for the solution.
>
> Regards, Casper
>
> -Oprindelig meddelelse-
> Fra: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] På
> vegne af Casper Børgesen
> Sendt: 12. februar 2010 14:48
> Til: users@openlayers.org
> Emne: [OpenLayers-Users] Corrupted selection in IE8
>
> Hi!
>
> I have encountered this strange behavior in IE8.
>
> See:
>
> Corrupted: http://imgur.com/2HyEP&BTJ13l
> Normal: http://imgur.com/2HyEPl&BTJ13
>
> It happened when I selected an object (it's a lake) and was trying to
> visualize it using OL 2.8. Usually this works but suddenly it didn't.
> After refreshing the page, everything is back to normal and I can select
> again. I haven't encountered this in FF and very rarely in IE8.
>
> But I would like to know what causes this problem, so that I might avoid
> it in the future.
>
> Does anyone know why this is happening?
>
> Regards Casper
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] (no subject)

2010-03-10 Thread bartvde
Sure WFS-T can be used to update attributes only.

The only thing I've run into when implementing is:

http://trac.openlayers.org/ticket/2033

Best regards,
Bart

> Hello,
>
> I am trying to do is not to save any geometry at a wfs layer, instead I am
> trying to to save non geographical data, I mean just a date, string or
> integer data that belongs to a feature. If I am not wrong a feature has
> geometry data and non geographical data.
>
>
>
> Well, I am already showing this non geographical information through a
> popup and also in through an EditorGridPanel.
>
>
>
> I want to do is to have data inserted and updated by using both ways
> (FormPanel inside a popup and also an EditorGridPanel with a FeatureStore)
> but I don’t know how this could be achieved... the only thing is that I
> have a geoserver wfs-t and I am wondering if this wfs-t would do the
> job...
>
>
>
> So it could be done using the wfs-t? how?
>
>
>
> Thank you in advance for helping.
>
> Kind regards.
>
> Mario.
>
>
>
> --
> This e-mail and the documents attached are confidential and intended
> solely for the addressee; it may also be privileged. If you receive
> this e-mail in error, please notify the sender immediately and destroy it.
> As its integrity cannot be secured on the Internet, the Atos Origin
> group liability cannot be triggered for the message content. Although
> the sender endeavours to maintain a computer virus-free network,
> the sender does not warrant that this transmission is virus-free and
> will not be liable for any damages resulting from any virus transmitted.
>
> Este mensaje y los ficheros adjuntos pueden contener informacion
> confidencial
> destinada solamente a la(s) persona(s) mencionadas anteriormente
> pueden estar protegidos por secreto profesional.
> Si usted recibe este correo electronico por error, gracias por informar
> inmediatamente al remitente y destruir el mensaje.
> Al no estar asegurada la integridad de este mensaje sobre la red, Atos
> Origin
> no se hace responsable por su contenido. Su contenido no constituye ningun
> compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas
> partes.
> Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
> no puede garantizar nada al respecto y no sera responsable de cualesquiera
> danos que puedan resultar de una transmision de virus.
> --
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] SplitFeature question

2010-03-09 Thread bartvde
I think you can use the beforesplit event for this (and use the source
property):

 * Supported control event types (in addition to those from
):
 * beforesplit - Triggered before a split occurs.  Listeners receive an
 * event object with *source* and *target* properties.

Best regards,
Bart

> Hello everybody
>
> I want to add a line splitting tool to my webgis. This is working well.
> But, the problem is that I want to add a point feature where the split has
> occured.
>
> In order to do this, I would need to know the exact coordinates of where
> the
> split occured. Is this information available through an event function or
> any
> other way?
>
> Thanks
>
> --
> Maxime Phaneuf
> Candidat à la maîtrise en géomatique
> Université de Sherbrooke
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] inconsistent click handling

2010-03-09 Thread bartvde
Hi,

my first guess would be the clickTolerance, try setting it to a larger
value (defaults to 4).

There is only an ugly prototype way to set it right now, but please give
it a try:

OpenLayers.Handler.Feature.prototype.clickTolerance = 6;

Best regards,
Bart

> Hello list,
>
> I'm having a persistent problem, which is not very consistently
> reproducible.
>
> I have a small application with a button, which when beeing clicked,
> places a marker
> on a map. The marker can be moved.
> When double clicked, the marker dis-appears and a popup-window is shown.
> In 50% (a guestimate) of the 'double-clicks' there is no reaction at al
>
> This page is as clean as I can create the example:
> http://ligplekwijzer.steckelfisch.nl/feature-not-responding-test1.html
>
> This code creates the layer:
> function addNewLigplekLayer() {
>   var SHADOW_Z_INDEX = 10;
>   var MARKER_Z_INDEX = 11;
>
>   try {
>   newLigplekLayer = new OpenLayers.Layer.Vector( "Aanmelden nieuwe
> ligplek",
>   {
>   styleMap: new OpenLayers.StyleMap({
>   externalGraphic: "/ligplekwijzer_files/img/Cross.png",
>   backgroundXOffset: 0,
>   backgroundYOffset: -7,
>   graphicZIndex: MARKER_Z_INDEX,
>   backgroundGraphicZIndex: SHADOW_Z_INDEX,
>   pointRadius: 15
>   }),
>   isBaseLayer: false,
>   displayInLayerSwitcher: false
>   }
>   );
>
>   // Toevoegen drag feature control voor het verslepen van een feature
>   var dragFeature = new OpenLayers.Control.DragFeature(newLigplekLayer);
>   map.addControl( dragFeature );
>   dragFeature.activate();
>
>   var newLigplekControlOptions = {   onSelect: onNieuweLigplekSelect,
>   onUnselect: onNieuweLigplekUnselect 
> };
>
>   newLigplekControl = new 
> OpenLayers.Control.SelectFeature(newLigplekLayer,
>   
> newLigplekControlOptions)
> ;
>   map.addControl( newLigplekControl );
>   newLigplekControl.activate();
>
>   map.addLayers([newLigplekLayer]);
>   newLigplekLayer.setVisibility( true, true);
>   } catch(e) {
> alert("Opbouwen van de data-laag AanmeldenNieuweLigplek is verkeerd
> gegeaan. " + e.name + ". Error message: " + e.message);
>   }
>
> }
>
>
>
> this is the code that adds the marker to the layer:
>
> function addNewLigplekFeature() {
> //alert("addNewLigplekFeature");
> try {
>   if( newLigplekLayer != null) {
>   try {
>newLigplekLayer.destroyFeatures(newLigplekLayer.features);
> }
> catch( err) {
>  //ignore.
>  alert(err);
>   }
>
>   var features = [];
>   var center = map.getViewPortPxFromLonLat(map.getCenter());
>   var pixel = new OpenLayers.Pixel(center.x, center.y);
>   var lonLat = map.getLonLatFromViewPortPx(pixel);
>   features.push(
>   new OpenLayers.Feature.Vector(
>   new OpenLayers.Geometry.Point(lonLat.lon, 
> lonLat.lat)
>   )
>   );
>
>   newLigplekLayer.addFeatures(features);
>   newLigplekLayer.setVisibility( true, true);
>   }
> }
> catch( err) {
>   alert( "Error in addNewLigplekFeature: "+err );
> }
> }
>
>
> I hope someone can provide me a handle or a pointer to solve this issue.
>
> Regards,
> Gert-Jan Braas
>
> 
> Scholen dienen methodes te onderwijzen,
> niet het gebruik van Microsoft producten.
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] zIndex and Base Layer

2010-03-08 Thread bartvde
What type is your base layer? WMS?

If  so, you can use allOverlays: true on your MAP object.

Best regards,
Bart

> Hi,
>
> Here is my code,
>
> layer_map is my base layer. I put it in order to display my map. As I
> noticed layer_wms1 and layer_wms2 are not mine. It uses wms server from
> other companies.
>
> map.addLayer(layer_wms1);
> map.addLayer(layer_wms2);
> map.addLayer(layer_map);
>
> In this configuration my layer_map doesn't display up to the other layers.
>
> Do you understand ?
>
> Maria
>
>
> 2010/3/5 Christopher Schmidt 
>
>> On Fri, Mar 05, 2010 at 09:10:34AM +0100, Maria Neywell wrote:
>> > I’m using some wms layers which don’t belong to me (are not mine).
>> Only
>> the
>> > base layer is mine and I need to put it up to the others.
>>
>> Perhaps providing your existing code/HTML page would help clarify the
>> current situation and what you plan to do.
>>
>> -- Chris
>>
>> > Maria
>> >
>> >
>> > 2010/3/3 Christopher Schmidt 
>> >
>> > > On Wed, Mar 03, 2010 at 02:54:58PM +0100, Maria Neywell wrote:
>> > > > Hi list,
>> > > >
>> > > >
>> > > >
>> > > > The OpenLayer’s doc explains that “Base Layers
>> always
>> > > > display below overlay layers”. Is it a fatality or is it possible
>> to
>> have
>> > > > the Base Layer always on top of the others layers ? I need to have
>> my
>> > > Base
>> > > > Layer in front of the my others layers.  Is there any hack ?
>> > >
>> > > Why is it a base layer if you want it over the top of other layers?
>> > >
>> > > -- Chris
>> > >
>> > > >
>> > > >
>> > > >
>> > > > Thanks in advance,
>> > > >
>> > > > Cheers,
>> > > >
>> > > > Maria
>> > >
>> > > > ___
>> > > > Users mailing list
>> > > > Users@openlayers.org
>> > > > http://openlayers.org/mailman/listinfo/users
>> > >
>> > >
>> > > --
>> > > Christopher Schmidt
>> > > MetaCarta
>> > >
>>
>> --
>> Christopher Schmidt
>> MetaCarta
>>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Really basic question about base layers

2010-03-05 Thread bartvde
Options are the 4th parameter of the constructor, so use:

 var ol_wms = new OpenLayers.Layer.WMS(
 "OpenLayers WMS",
 "http://labs.metacarta.com/wms/vmap0";,
 {
 layers: 'basic',
 }, {
 displayInLayerSwitcher: false,
 isBaseLayer: true
  }
 );

Best regards,
Bart

> Can you not hide the basic OpenLayers map in the layer switcher? I've done
> it with other base maps but for some reason:
>
> var ol_wms = new OpenLayers.Layer.WMS(
> "OpenLayers WMS",
> "http://labs.metacarta.com/wms/vmap0";,
> {
> layers: 'basic',
> displayInLayerSwitcher: false,
> isBaseLayer: true
> }
> );
>
> Displays this layer at the top in the layer switcher. Is there something
> else I should be doing?
>
> --
> web http://www.hyxspace.com
> aim hyx1138
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] OpenLayers.Layer.MapServer.Untiled

2010-03-05 Thread bartvde
Hi,

add the following to your MAP file:

MAP
  ..
  MAXSIZE 3000
  ..

Best regards,
Bart

>
> Hi all;
>
> This is my Layer definition;
>
> var mapserv = new
> OpenLayers.Layer.MapServer.Untiled("MapServer","http://192.168.2.15/cgi-bin/world_900913?";,
> {layers:'World_Sea',transparent:true,
> format:"image/png",srs:"epsg:900913"},{buffer: 0, gutter: 0,isBaseLayer:
> false, opacity:0.5});
>
> This is the message returned;
>
> msUpdateMapFromURL(): Web application error. Image size out of range.
>
> The url of this error is;
>
> http://192.168.2.15/cgi-bin/world?layers=World_Sea&transparent=true&format=image%2Fpng&srs=epsg%3A900913&mode=map&map_imagetype=png&mapext=1302981.4204699+3362934.2490722+6586308.8145949+6088984.4253464&imgext=1302981.4204699+3362934.2490722+6586308.8145949+6088984.4253464&map_size=2160+1114&imgx=1080&imgy=557&imgxy=2160+1114
>
> But if I delete after map_size definition, it works!!! ;
>
> http://192.168.2.15/cgi-bin/world?layers=World_Sea&transparent=true&format=image%2Fpng&srs=epsg%3A900913&mode=map&map_imagetype=png&mapext=1302981.4204699+3362934.2490722+6586308.8145949+6088984.4253464&imgext=1302981.4204699+3362934.2490722+6586308.8145949+6088984.4253464
>
> What did I miss?
>
> --
> View this message in context:
> http://n2.nabble.com/OpenLayers-Layer-MapServer-Untiled-tp4681036p4681036.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] How to add more than one container into a treepanel

2010-03-04 Thread bartvde
Wrong list.

Please use:

http://www.geoext.org/cgi-bin/mailman/listinfo/users

Best regards,
Bart

> Dear list member,
>
> I have two GeoExt.tree container. One is BaseLayerContainer and the other
> one is OverlayLayerContainer.
> I aim to merge them in a single Ext.tree.TreePanel so that they are both
> seen but seperately. The following procedure does not work:
> (They are trying to load the layers but they are not loaded)
>
> *var layerTree = new Ext.tree.TreePanel({
> id: "treepanel",
> title: "Layers",
> root: new Ext.tree.AsyncTreeNode({
> expanded: true,
> children: [layerTreeBase, layerTreeFeaturesInternal]
> }),
> rootVisible: false,
> split: true,
> collapsible: true,
> collapseMode: "mini",
> autoScroll: true,
> lines: false,
> enableDD: true
> });*
>
> when I modify root as shown below the application works but only with
> baselayers.
> *root: layerTreeBase
>
> *What should I do in order to display both baselayers and other layers in
> a
> tree format.*
>
> *Best Regards,
> Ozgur
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Google Maps API v3 & Including Patches to 2.8

2010-03-04 Thread bartvde
Hi,

I don't know exactly at what hour the nightly build runs, but it will be
off trunk, so yes anything that gets committed today, will be in the
nightly build the day after.

Ofcourse you can always apply patches yourself, use the patch utility.

Best regards,
Bart

>
> Hello,
> I was searching for an news on when/if Google Maps API v3 would be
> supported
> and found ticket 2493. When this gets approved, will it be added to the
> nightly build? How does one know if ticket is included in a nightly build?
>
> Is there away to apply patches before the full version comes out?
>
> Thanks,
> Matt
> --
> View this message in context:
> http://n2.nabble.com/Google-Maps-API-v3-Including-Patches-to-2-8-tp4674369p4674369.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WFS layer not display..

2010-03-02 Thread bartvde
What do you see in Firebug when you check out the request done by
OpenLayers and the response from your Geoserver? Does it raise an
exception, is GML returned? If so, can you post a sample of that GML (1
feature e.g.).

Best regards,
Bart

>
> Bart, thx u so much.. but I already tried it both with and without the
> namespace prefix.. it still doesn't work.. :-/
> --
> View this message in context:
> http://n2.nabble.com/WFS-layer-not-display-tp4660996p4661033.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WFS layer not display..

2010-03-02 Thread bartvde
featureType is without the namespace prefix, so city_point.

Best regards,
Bart

>
> Hi,
>
> I'm new in GIS and now trying to do my work with GeoServer + OpenLayers
> mainly focusing on WFS-T. Since last week, I've faced a problem about WFS
> layer due to it doesn't display as I expect. I've tried to search for the
> solution to this problem and tried to change my code based on the answers
> I've found but it's still doesn't help.
>
> it doesn't work when I use >> OpenLayers.Layer.Vector
> ---
> var saveStrategy = new OpenLayers.Strategy.Save();
> var point = new OpenLayers.Layer.Vector("Points - OL_Vector", {
>  strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
>  projection: new OpenLayers.Projection("EPSG:32632"),
>  protocol: new OpenLayers.Protocol.WFS({
> url: "/geoserver/wfs",
> featureType: "opp:city_point",
> srsName: "EPSG:32632",
> featureNS :  "http://www.opp.com/city";
>   })
> });
> ---
>
> but it works when I use >> OpenLayers.Layer.WFS
> ---
> var pntwfs = new OpenLayers.Layer.WFS(
> "Points - OL_WFS", "/geoserver/wfs",
> { typeName: "opp:city_point"},
> {
> typename: "city_point",
> featureNS: "http://www.opp.com/city";,
> extractAttributes: true,
> srsName: "EPSG:32632"
> },
> {'reproject':true}
> );
> ---
>
> Btw, when I tried to use OpenLayers.Layer.Vector with Tasmania data, it
> works fine. Really have no idea what to do next..
>
> Your suggestions will be greatly appreciated. Thank you very much.
> --
> View this message in context:
> http://n2.nabble.com/WFS-layer-not-display-tp4660996p4660996.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WMSCapabilities parse problem

2010-03-02 Thread bartvde
Hi,

I think you need to use a proxy in between.

http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost

Best regards,
Bart

>
> This doesnt help.
> Firebug shows that response.responseXML is null and response.responseText
> is
> empty string.
> So the problem is not in the parser but in the GET request I guess,
> because
> in browser this URL (
> http://apps1.gdr.nrcan.gc.ca/cgi-bin/worldmin_en-ca_ows?request=GetCapabilities&service=WMS&version=1.1.1
> ) gives correct XML response.
> I tried OpenLayers.Request.GET with params and url without query part, but
> responseText is still empty string.
> --
> View this message in context:
> http://n2.nabble.com/WMSCapabilities-parse-problem-tp4660147p4660425.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WMSCapabilities parse problem

2010-03-02 Thread bartvde
Hi,

you don't need Format.XML in between but I doubt that's your problem.

var CAPformat = new OpenLayers.Format.WMSCapabilities();
var cap = CAPformat.read(response.responseXML || response.responseText);

Can you share the output of your WMS GetCapabilities response?

Best regards,
Bart

>
> Hi.
>
> I'm trying to parse WMS GetCapabilities response to get LegendURLs.
> I started with sample from http://trac.openlayers.org/ticket/1176 and was
> able to read "version" property.
> However I can't read "Service" and "Capability" nodes of response. They
> show
> up as undefined in firebug console.
> I tried Openlayers 2.8 and latest nightly build.
> Here is my piece of code:
>
> var request = OpenLayers.Request.GET({
>   url:
> "http://apps1.gdr.nrcan.gc.ca/cgi-bin/worldmin_en-ca_ows?request=GetCapabilities&service=WMS&version=1.1.1";,
>   success: function(response) {
>   var XMLformat = new OpenLayers.Format.XML();
>   var xml = XMLformat.read(response.responseText);
>   var CAPformat = new OpenLayers.Format.WMSCapabilities();
>   var cap = CAPformat.read(xml);
>   window.console.log("Capabilities: " + cap);
>   window.console.log("Capabilities.version: " + cap.version);
>   window.console.log("Capabilities.service: " + cap.service);
>   window.console.log("Capabilities.capability: " + 
> cap.capability);
>   }
> });
>
> What's wrong with my code?
> --
> View this message in context:
> http://n2.nabble.com/WMSCapabilities-parse-problem-tp4660147p4660147.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] LayerSwitcher

2010-03-02 Thread bartvde
Hi,

set displayInLayerSwitcher to false on your single base layer to only show
the overlays in the LayerSwitcher.

Best regards,
Bart

>
> Hello list,
>
> I have another question about the LayerSwitcher. I have only one base
> layer. This Layer is always shown. In the LayerSwitcher there is an radio
> button for this layer but you can't use it. Is there a possibility hide
> this radiobutton in the layerswitcher? I will only show the overlays in
> the Layer Switcher.
>
> Greetings and a lot of thanks for your help.
> Hanno Rahn
>
> --
> 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 Wädenswil
> Tel +41 (0)58 934 5592
> Fax +41 (0)58 934 5580
> hanno.r...@zhaw.ch
> www.iunr.zhaw.ch/geoinformatik
>
>
>
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Partial Layer Selection

2010-02-26 Thread bartvde
Wrong list?

https://lists.sourceforge.net/lists/listinfo/geoserver-users

Best regards,
Bart

>
> Hi list,
> I would like to represent part of a postgis table as a WMS layer in
> Geoserver. Is this possible? It seems really basic, until now I have never
> had to do this, and now that I need to, I am stumped!
> For example I have a postgis table of point objects.
> I would like to create:
> A first geoserver layer of all point objects where type = 1 as blue dots
> another geoserver layer of all point objects where type = 2 as red dots,
> another where type = 3 as black dots  etc.
>
> As far as I can see it seems to be one layer per postgis table. Is there a
> better way of doing this?
> I could make the layers WFS instead if that offers a better solution.
> I am using Geoserver 2.0
> Thanks,
>
> Eoin
> --
> View this message in context:
> http://n2.nabble.com/Partial-Layer-Selection-tp4638515p4638515.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Multiple invoke by zoom, very bad performance

2010-02-19 Thread bartvde
Does this happen with normal zoom or with the mousewheel zoom?

If with the mousehweel zoom, check the new options (in OL trunk) for the
MouseWheel handler:

/**
 * Property: interval
 * {Integer} In order to increase server performance, an interval (in
 * milliseconds) can be set to reduce the number of up/down events
 * called. If set, a new up/down event will not be set until the
 * interval has passed.
 * Defaults to 0, meaning no interval.
 */
interval: 0,

/**
 * Property: delta
 * {Integer} When interval is set, delta collects the mousewheel z-deltas
 * of the events that occur within the interval.
 *  See also the cumulative option
 */
delta: 0,

/**
 * Property: cumulative
 * {Boolean} When interval is set: true to collect all the mousewheel
 * z-deltas, false to only record the delta direction (positive or
 * negative)
 */
cumulative: true,

Best regards,
Bart

>
> Hi Marc, thank you very much for your attention.
>
> The test is very simple:
>
> in jsp: invke the map throughout servlet:
>
> map = new OpenLayers.Map( 'map' );
> layer = new OpenLayers.Layer.WMS(
> "SampleWMS",
> "OpenlayerZoomMultipleInvoke",//invoke the serlvlet
> {layers: 'sea_ice_concentration_02'},
> {singleTile: true}
>
> int the servlet: I catch the parameter (getParameter layer, bbxo, etc...)
> and load the rul, for example:
>
> url = server + request.getParameter("BBOX") + ; and print a message:
>
> System.out.println("invoke the map");
>
> The message is print 2^n times (n = #zoom), ie: zoom=2 => message print 4
> times...zoom=4=>16 times...
>
> Thanks, Marck
> --
> View this message in context:
> http://n2.nabble.com/Multiple-invoke-by-zoom-very-bad-performance-tp4595600p4597953.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Overview map with ArcIMS breaks

2010-02-19 Thread bartvde
Hi Vadim,

I've just added a patch to your ticket which should solve this issue, so
you don't need the workaround.

Best regards,
Bart

> Hi Vadim,
>
> I just tried and I can reproduce your problem. Normally these issues can
> be fixed by cloning the baselayer, however for the ArcIMS case this did
> not work for me, probably since it misses a specific implementation of the
> clone method.
>
> However, using a nother separate ArcIMS layer for the overview map control
> works okay. I know it's a workaround for the problems you encountered, but
> hopefully it will keep you moving.
>
> layer = new OpenLayers.Layer.ArcIMS( "Global Sample Map",
> 
> "http://sample.avencia.com/servlet/com.esri.esrimap.Esrimap";,
> options );
>
> var overview = new OpenLayers.Layer.ArcIMS( "overview",
> 
> "http://sample.avencia.com/servlet/com.esri.esrimap.Esrimap";,
> options );
>
> map.addLayer(layer);
>
> map.addControl (new OpenLayers.Control.OverviewMap({layers:
> [overview]}) );
>
> Best regards,
> Bart
>
>>
>> Hi,
>>
>> Created a new ticket on Trac but didn't get a response there, so I'm
>> wondering if this is a user error API error
>> (http://trac.openlayers.org/ticket/2490).
>>
>>
>> When an ArcIMS layer is a base layer, the overview map doesn't load and
>> errors are throw in
>>
>> Grid.js.addTileMonitoringHooks(tile)
>>
>> the "tile" that is passed is undefined. I was able to trace it back to
>>
>> Grid.js.initGriddedTiles(..)
>>
>> => line 408
>>
>>  if (!tile) {
>> tile = this.addTile(tileBounds, px);
>> this.addTileMonitoringHooks(tile);
>> row.push(tile);
>> } else {
>> tile.moveTo(tileBounds, px, false);
>> }
>>
>>
>> The call to
>>
>> tile = this.addTile(tileBounds, px);
>>
>> returns undefined. So it seems that the actual error is in
>> ArcIMS.js.addTile(...)
>>
>> To replicate:
>>
>> 1) Take the basic ArcIMS example
>>
>> http://www.openlayers.org/dev/examples/arcims.html
>>
>> 2) Add 1 line at the end of the init() routine to add the overview map
>>
>> map.addControl (new OpenLayers.Control.OverviewMap( ) );
>>
>> 3) Load sample HTML file -> map loads, but the overview control throws
>> errors
>>
>> Are there any parameters I can pass in to OverviewMap to make it work?
>>
>> I've tried it WMS and ArcGIS (both Tile based layers) and they both
>> worked.
>>
>> Thanks,
>>
>> -Vadim
>> --
>> View this message in context:
>> http://n2.nabble.com/Overview-map-with-ArcIMS-breaks-tp4595244p4595244.html
>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>> ___
>> Users mailing list
>> Users@openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Overview map with ArcIMS breaks

2010-02-19 Thread bartvde
Hi Vadim,

I just tried and I can reproduce your problem. Normally these issues can
be fixed by cloning the baselayer, however for the ArcIMS case this did
not work for me, probably since it misses a specific implementation of the
clone method.

However, using a nother separate ArcIMS layer for the overview map control
works okay. I know it's a workaround for the problems you encountered, but
hopefully it will keep you moving.

layer = new OpenLayers.Layer.ArcIMS( "Global Sample Map",

"http://sample.avencia.com/servlet/com.esri.esrimap.Esrimap";,
options );

var overview = new OpenLayers.Layer.ArcIMS( "overview",

"http://sample.avencia.com/servlet/com.esri.esrimap.Esrimap";,
options );

map.addLayer(layer);

map.addControl (new OpenLayers.Control.OverviewMap({layers:
[overview]}) );

Best regards,
Bart

>
> Hi,
>
> Created a new ticket on Trac but didn't get a response there, so I'm
> wondering if this is a user error API error
> (http://trac.openlayers.org/ticket/2490).
>
>
> When an ArcIMS layer is a base layer, the overview map doesn't load and
> errors are throw in
>
> Grid.js.addTileMonitoringHooks(tile)
>
> the "tile" that is passed is undefined. I was able to trace it back to
>
> Grid.js.initGriddedTiles(..)
>
> => line 408
>
>  if (!tile) {
> tile = this.addTile(tileBounds, px);
> this.addTileMonitoringHooks(tile);
> row.push(tile);
> } else {
> tile.moveTo(tileBounds, px, false);
> }
>
>
> The call to
>
> tile = this.addTile(tileBounds, px);
>
> returns undefined. So it seems that the actual error is in
> ArcIMS.js.addTile(...)
>
> To replicate:
>
> 1) Take the basic ArcIMS example
>
> http://www.openlayers.org/dev/examples/arcims.html
>
> 2) Add 1 line at the end of the init() routine to add the overview map
>
> map.addControl (new OpenLayers.Control.OverviewMap( ) );
>
> 3) Load sample HTML file -> map loads, but the overview control throws
> errors
>
> Are there any parameters I can pass in to OverviewMap to make it work?
>
> I've tried it WMS and ArcGIS (both Tile based layers) and they both
> worked.
>
> Thanks,
>
> -Vadim
> --
> View this message in context:
> http://n2.nabble.com/Overview-map-with-ArcIMS-breaks-tp4595244p4595244.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] setting map's active tool

2010-01-28 Thread bartvde
OpenLayers.Control.Panel has an activateControl method, so if you put your
controls in a panel you can easily activate a control.

Best regards,
Bart

>
> Hello list,
>
> Is there a simple way (like a property or function) that set's an active
> tool? I mean, something like map.setActiveTool(aTool)??
>
> Thanks.
>
> Un saludo,
>
> ··
>
> David Alda Fernández de Lezea
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
>
> IKT
> Granja Modelo s/n · 01192 · Arkaute (Araba)
>
> ··
> Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
> ··
> email: da...@ikt.esweb: www.ikt.es
> ··
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] zoom to feature

2010-01-26 Thread bartvde
Hi,

see:

http://trac.openlayers.org/wiki/Addins/ZoomToFeatures

Best regards,
Bart

> Hi list,
> I wanted to know if there is the posibility of zooming to a feature or
> multiple features?
> if not, maybe someone can tell me, how to get a BoundingBox including
> selected features?
> cheers Marco
>
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Cursor style on control activation

2010-01-11 Thread bartvde
Alexandre,

that should not be necessary, css is all that it takes.

IIRC the syntax is:

.olControlZoomBoxActive {
  cursor: pointer;
}

etc. so displayClass plus Active.

Bart

> Hi,
>
>   I want to be able to change the default style of the cursor when
> activating controls.  Each control should have its unique cursor.  I
> want to validate that the way I'd do it is okay.  Please comment.
>
>   I would simply register "activate" to use OpenLayers.Element.addClass
> to change the style of the cursor and "deactivate" to
> OpenLayers.Element.removeClass to restore the default state.  Does that
> make sense ?
>
> --
> Alexandre Dubé
> Mapgears
> www.mapgears.com
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Problem in openlayers when migrating from Mapserver 5.0 to 5.2

2009-12-24 Thread bartvde
Hi,

did you try and leave out the parameter mode like I said in my first e-mail?

It looks like every tile retrieves a full map, because you use mode=map in
your parameter list. Remove it, so use:

countrylayer  = new OpenLayers.Layer.WMS( "Country Outline",
  "http://"; + server + "/cgi-bin/mapserv.exe?",
  {map:'../htdocs/ms/stats.map', layers: 'cntry98', format: "image/png"},
  country_options);

Best regards,
Bart

>
> Thankyou Bart for your quick reply.
>  Please find attached the screenshot.
>
> Thanks
> Afroz
>
> Bart van den Eijnden wrote:
>>
>> What do you mean with repeating as tiles? Can you show an example, a
>> screendump of what is wrong?
>>
>> Also, your WMS layer should not get the parameters mode and layers,
>> remove
>> them from your Layer.WMS definition.
>>
>> Best regards,
>> Bart
>>
>>>
>>> I have a WMS worldmap layer which was working fine in mapserver 5.0
>>> with
>>> openlayers 2.8
>>> Now when I migrated to mapserver 5.2, the worldmap layer in repeating
>>> as
>>> tiles.
>>>
>>> Below is my code, Only copied the relevant part.
>>>
>>>
>>> //Variables
>>>
>>> var country_options = {displayInLayerSwitcher: true,opacity: 0.7};
>>> var extent  = new OpenLayers.Bounds(-57,-55,175,80);
>>> var map_options = {'maxExtent':
>>> extent,numZoomLevels:6,restrictedExtent:
>>> extent}
>>>
>>>   // Inside the init function.
>>> map = new OpenLayers.Map( 'map', map_options);
>>> countrylayer  = new OpenLayers.Layer.WMS( "Country Outline",
>>> "http://"; + server + "/cgi-bin/mapserv.exe?",
>>> {map:'../htdocs/ms/stats.map',mode:'map',layers: 'cntry98', 
>>> format:
>>> "image/png"},
>>> country_options);
>>>
>>>
>>> // Map File
>>>
>>> MAP
>>> IMAGETYPE  PNG24
>>> EXTENT  -45 -55 175 75
>>> SIZE   980 700
>>> SHAPEPATH  "./data"
>>> IMAGECOLOR 217 236 255 #255 230 255
>>> FONTSET"./fonts/fonts.list"
>>> SYMBOLSET  "./fonts/vectors.sym"
>>>
>>>
>>> PROJECTION
>>> "init=epsg:4326"  #2163 4326 26915
>>> END
>>>
>>> WEB
>>> IMAGEPATH "C:/Programs/ms4w/Apache/htdocs/ms/tmp/"
>>> IMAGEURL  "/ms/tmp/"
>>> LOG "C:/Programs/ms4w/Apache/htdocs/ms/tmp/"
>>> END
>>>
>>> # Start of LAYER DEFINITIONS
>>> -
>>> LAYER # Country polygon layer begins here
>>> NAME cntry98
>>> DATA cntry98
>>> STATUS   OFF
>>> TYPE POLYGON
>>>
>>> PROJECTION
>>>   "init=epsg:4326"  # 4326 26915
>>> END
>>> TRANSPARENCY 80
>>> CLASSITEM"CNTRY_NAME"
>>> CLASS
>>>   NAME   "COUNTRY"
>>>   STYLE
>>>COLOR 255 255 232
>>>OUTLINECOLOR  0 0 0
>>>   END
>>> END
>>> END # Country polygon layer ends here
>>> END
>>>
>>> The map works fine if I change OpenLayers.Layer.WMS  to
>>> OpenLayers.Layer.MapServer, but I cant use that option at it would
>>> affect
>>> the code in other places.
>>>
>>> Any help would be highly appreciated.
>>> Thanks in advance
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/Problem-in-openlayers-when-migrating-from-Mapserver-5-0-to-5-2-tp4212330p4212330.html
>>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>>> ___
>>> Users mailing list
>>> Users@openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>>
>>
>>
>> ___
>> Users mailing list
>> Users@openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
> http://n2.nabble.com/file/n4212380/ss.jpg
> --
> View this message in context:
> http://n2.nabble.com/Problem-in-openlayers-when-migrating-from-Mapserver-5-0-to-5-2-tp4212330p4212380.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Problem in openlayers when migrating from Mapserver 5.0 to 5.2

2009-12-23 Thread bartvde
What do you mean with repeating as tiles? Can you show an example, a
screendump of what is wrong?

Also, your WMS layer should not get the parameters mode and layers, remove
them from your Layer.WMS definition.

Best regards,
Bart

>
> I have a WMS worldmap layer which was working fine in mapserver 5.0 with
> openlayers 2.8
> Now when I migrated to mapserver 5.2, the worldmap layer in repeating as
> tiles.
>
> Below is my code, Only copied the relevant part.
>
>
> //Variables
>
> var country_options   = {displayInLayerSwitcher: true,opacity: 0.7};
> var extent= new OpenLayers.Bounds(-57,-55,175,80);
> var map_options   = {'maxExtent': 
> extent,numZoomLevels:6,restrictedExtent:
> extent}
>
>   // Inside the init function.
> map = new OpenLayers.Map( 'map', map_options);
> countrylayer  = new OpenLayers.Layer.WMS( "Country Outline",
> "http://"; + server + "/cgi-bin/mapserv.exe?",
>   {map:'../htdocs/ms/stats.map',mode:'map',layers: 'cntry98', 
> format:
> "image/png"},
>   country_options);
>
>
> // Map File
>
> MAP
>   IMAGETYPE  PNG24
>   EXTENT  -45 -55 175 75
>   SIZE   980 700
>   SHAPEPATH  "./data"
>   IMAGECOLOR 217 236 255 #255 230 255
>   FONTSET"./fonts/fonts.list"
>   SYMBOLSET  "./fonts/vectors.sym"
>
>
>   PROJECTION
>   "init=epsg:4326"  #2163 4326 26915
>   END
>
>   WEB
>   IMAGEPATH "C:/Programs/ms4w/Apache/htdocs/ms/tmp/"
>   IMAGEURL  "/ms/tmp/"
>   LOG "C:/Programs/ms4w/Apache/htdocs/ms/tmp/"
>   END
>
>   # Start of LAYER DEFINITIONS
> -
>   LAYER # Country polygon layer begins here
>   NAME cntry98
>   DATA cntry98
>   STATUS   OFF
>   TYPE POLYGON
>
>   PROJECTION
> "init=epsg:4326"  # 4326 26915
>   END
>   TRANSPARENCY 80
>   CLASSITEM"CNTRY_NAME"
>   CLASS
> NAME   "COUNTRY"
> STYLE
>  COLOR 255 255 232
>  OUTLINECOLOR  0 0 0
> END
>   END
>   END # Country polygon layer ends here
> END
>
> The map works fine if I change OpenLayers.Layer.WMS  to
> OpenLayers.Layer.MapServer, but I cant use that option at it would affect
> the code in other places.
>
> Any help would be highly appreciated.
> Thanks in advance
> --
> View this message in context:
> http://n2.nabble.com/Problem-in-openlayers-when-migrating-from-Mapserver-5-0-to-5-2-tp4212330p4212330.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Projection issue

2009-12-11 Thread bartvde
Hi,

units are not meters for EPSG:4326, but deegrees (units: 'dd').

Best regards,
Bart

> Hi list,
>
> I`m using mapfish and I want to load WMS/ArcIMS layer. But I see that my
> coordinates from bbox are wrong:
> I get something like 9.5,48.5,90409.5,90448.5. WMS epsg is 4326.
> projection: new OpenLayers.Projection("EPSG:4326"), //default
> displayProjection: new OpenLayers.Projection("EPSG:4326"),
> units: "m",
> numZoomLevels: 12,
> maxResolution: 5650,
> maxExtent: new OpenLayers.Bounds(9.5,48.5,9.6,48.6),
>
>  new OpenLayers.Layer.WMS("INFOGIS_WMS",
> "http://myserver/wmsconnector/com.esri.wms.Esrimap/GIS_layer?";,
> {layers: '0', format: "image/png", transparent: false, BGCOLOR:
> '0xCC00CC'  }, {projection: "EPSG:4326", isBaseLayer: true}),
>
> How can I solve this? Any hints are welcome.
>
> best regards
> Sarah
>
>
> __
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
> gegen Massenmails.
> http://mail.yahoo.com ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] my vector layer doesn't display

2009-12-08 Thread bartvde
Whether or not it's a must, depends on what your WFS server advertizes in
the xmlns part (on the root element) of the GML response. It must match
exactly.

Best regards,
Bart

> OMG, thanks ivan for you patience...You know what? I should have added a
> single slash at the end of my NS, like:
>
> featureNS: "http://www.opengis.net/ethroads/";
>
> Everything is now working well. Is that a must to add this slash or
> what???
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] GetFeatureInfo... Access denied..

2009-11-24 Thread bartvde
Hi,

why don't you set:

OpenLayers.ProxyHost = 'test.aspx?param=';

and then you don't need to change anything inside of the OpenLayers library.

Best regards,
Bart

> Hi all,
>
> Finally I've decided to modify the openlayers call.
> Now I make the XmlHttpRequest.open against the same domain (The IIS served
> application), and there I redirect the call to geoserver, and then return
> the result to the client..
>
> I've modifyed the OpenLayers.js doing this:
>
>  sUrl = "test.aspx?param=" + escape(sUrl); //Force the call to same domain
>  this._object.open(sMethod, sUrl, bAsync, sUser, sPassword);
>
> And I've created a new page called test hosted in IIS, that catch the
> request:
> If Request.QueryString.Count <> 0 Then
> Dim wsResponse As XmlDocument = New XmlDocument()
> Dim param As String
> param = Request.QueryString("param") 'In the param we have the
> GeoServer URL
> Dim url As String = param
> wsResponse.Load(url)
> Dim XMLDocument As String = wsResponse.InnerXml
> Response.Clear()
> Response.ContentType = "text/xml"
> Response.Write(XMLDocument) 'We return the result from
> GeoServer
> End If
>
> And doing that, I can do the XMLHttpRequest and get the response from
> GeoServer..
>
> Any advice/problem with doing in that way?
>
> Thanks!
>
>
> On Thu, Nov 19, 2009 at 06:03:23PM +0100, JuKiM wrote:
>>> > Hi,
>>> >
>>> > I've been testing in IE.. If I create a 'test.html' file in a folder
>>> under
>>> > IIS, I get an error of denied access/resource not available.. But if
>>> I
>>> copy
>>> > that file in the www folder of geoserver, then everything works ok..
>>> This is
>>> > quite logical, because IIS is running on port 80, and geoserver in
>>> 8080
>>> > (They are different hosts)...
>>>
>>>
>>> > Then when I declare the proxy, the IIS's test.html, the response i
>>> get
>>> is
>>> > empty..
>>>
>>> Your *IIS* needs the proxy. GeoServer has one built in, but it won't
>>> help
>>> you in the slightest if your HTML page isn't hosted on GeoServer. So
>>> either host your page on geoserver's webserver, or get a proxy into
>>> whatever webserver you do need.
>>>
>>> -- Chris
>>
>>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] export SVG

2009-11-24 Thread bartvde
No this is not possible currently, you would need to implement write
support for the Format.SVG which is in:

http://trac.openlayers.org/ticket/1808

Best regards,
Bart

> Hi list,
>
>
>
> I’m trying to export my current map into a svg file. I saw this old post :
> http://openlayers.org/pipermail/dev/2008-August/003302.html but i would
> like
> to do my export with all browsers and with all kinds of layers.
>
>
>
> Is there a possibility with OpenLayers for example to convert from some
> generic format like WKT to SVG ? Or is there another hack ?
>
>
>
> Regards,
>
>
> Maria
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] SLD_BODY and FeatureId / GmlObjectId

2009-11-23 Thread bartvde
Which version of OpenLayers are you using?

The WMS POST layer was done after the 2.8 release.

Best regards,
Bart

> In fact, I am having problem trying to replicate this example:
> http://openlayers.org/dev/examples/WMSPost.html
>
> I can't use this OpenLayers.Layer.WMS.Post()... I get an undefined
> reference
> when trying to use that call.
>
> On Mon, Nov 23, 2009 at 4:57 PM,  wrote:
>
>> Hi,
>>
>> this is not really an OpenLayers question, but more a question for the
>> mailing list of your WMS product.
>>
>> Best regards,
>> Bart
>>
>> > Does anyone have an example of a SLD using as a Filter the FeatureId
>> or
>> > GmlObjectId option?
>> >
>> > I am trying to use it but I don't get any results.
>> >
>> > Here is my SLD code:
>> >
>> > 
>> >   
>> > Layer
>> > UserSelection
>> > 
>> >   
>> > http://www.opengis.net/gml";>
>> > FF
>> >  
>> >
>> > 
>> >
>> > Thanks for the help.
>> > ___
>> > Users mailing list
>> > Users@openlayers.org
>> > http://openlayers.org/mailman/listinfo/users
>> >
>>
>>
>>
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] SLD_BODY and FeatureId / GmlObjectId

2009-11-23 Thread bartvde
Hi,

this is not really an OpenLayers question, but more a question for the
mailing list of your WMS product.

Best regards,
Bart

> Does anyone have an example of a SLD using as a Filter the FeatureId or
> GmlObjectId option?
>
> I am trying to use it but I don't get any results.
>
> Here is my SLD code:
>
> 
>   
> Layer
> UserSelection
> 
>   
> http://www.opengis.net/gml";>
> FF
>  
>
> 
>
> Thanks for the help.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] how to initialize 'WFS.fromWMSLayer' with features

2009-11-19 Thread bartvde
Call the read function on the returned protocol yourself.

Best regards,
Bart

> Eric Lemoine schreef:
>>> Like the example at
>>> http://openlayers.org/dev/examples/getfeature-wfs.html, I am using the
>>> OpenLayers.Protocol.WFS.fromWSMLayer convenience function to select
>>> features from a wms layer and collect the values of a certain
>>> attribute.
>>> When opening the same map a next time, I would like to show which
>>> features were selected. Now I'm looking for a way to add features to
>>> the
>>> wfs layer based on some attribute values, what would be the easiest
>>> way?
>>>
>>>
>>> you can register a "beforefeatureadded" listener on the vector layer,
>>> something like that:
>>>
>>> layer.events.on({
>>> beforefeatureadded: function(e) {
>>> // only add features whose foo attribute
>>> // is set to "bar"
>>> return e.feature.attributes.foo == "bar" ?
>>>  true : false;
>>> }
>>> });
>>>
>>>
>>> Hi Eric,
>>>
>>> What I would like is to fill the vector layer at initialization with
>>> the
>>> known features from the associated wfs layer. The beforefeatureadded
>>> event
>>> would still require the user to select features and then only adds the
>>> known
>>> features. But how to fill the vector layer with these features, without
>>> any
>>> action from the user?
>>>
>>
>> I don't get it. beforefeatureadded is triggered for every feature
>> added to the layer, it has nothing to do with the user selecting
>> features, hasn't it?
>>
> But where (or when) do the features come from? The
> OpenLayers.Protocol.WFS.fromWSMLayer function doesn't automatically
> fetch features from the wfs layer, but only in response to a click
> event. I would like it to automatically fetch (some) features at startup
> but don't know how.
>
> John.
>
> --
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] mergeNewParams not working

2009-11-13 Thread bartvde
You should apply it to the polygon layer.

What WMS are you using? Mapserver? Try to put your SLD XML on a webserver
and reference it with the SLD parameter without the use of OpenLayers in
between. If this does not work, you might have better luck asking on the
mailing list of your server product.

Have you tried without the xsl stuff embedded in your XML?

Also, things like PropertyIsEqualTo etc need to be in the ogc prefix, not
sure if this is the problem though (some WMS-s are quite permissive).

Best regards,
Bart

>
> Sure, here it is:
>
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>   
>   
>   
>xsi:schemaLocation="http://www.opengis.net/sld
>   StyledLayerDescriptor.xsd" 
> xmlns="http://www.opengis.net/sld";
>   xmlns:ogc="http://www.opengis.net/ogc";
>   xmlns:xlink="http://www.w3.org/1999/xlink";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>   
>   RecintosSigpac
>   
>   Selección de Recintos
>   Título
>   Comentarios
>   
>   
>xmlns:gml="http://www.opengis.net/gml";>
>   
>   
> 
>   
> PROVINCIA
>   
> 1
>   
> 
>   
> 
>   
> MUNICIPIO
>   
> 1
>   
> 
>   
> 
>   
> POLIGONO
>   
> 1
>   
> 
>   
> 
>   
> PARCELA
>   
> 1
>   
> 
>   
> 
>   
> RECINTO
>   
> 1
>   
> 
>   
>   
>   
>   
>   
> #FFCC66
>   
> 0.5
>   
>   
>   
> #00FF00
>   
> 3
>   
> 
>   
>   
>   
>   
>   
>   
>   
> 
>
>
> One more question, I have 2 layers, both are taken from my WMS but one is
> a raster file, that acts as base layer, and the other one is polygon
> layer. In which of them do I have to apply the new params??. I've tried
> appliying them in my polygon layer.
>
> Thanks.
>
>
> Un saludo,
>
> ··
>
> David Alda Fernández de Lezea
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
>
> IKT
> Granja Modelo s/n · 01192 · Arkaute (Araba)
>
> ··
> Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
> 

Re: [OpenLayers-Users] mergeNewParams not working

2009-11-13 Thread bartvde
Can you post the contents of your SLD XML?

Best regards,
Bart

> Hello,
>
> I want to apply some SLD generated on the fly through SLD_BODY parameter
> using the following code:
>
> var sld = getSLD("sld1.xsl","pilaXML.xml");
> var wms = map.getLayersByName("myLayerName")[0];
> wms.mergeNewParams({SLD_BODY: sld});
>
> but I don't get any result. The image is refreshed in the browser but
> there's no selection at all. I've got a debug file for my WMS server and I
> don't seem to get any error:
>
> [Fri Nov 13 09:00:18 2009].346000 CGI Request 1 on process 5940
>
> My SLD contains 2084 characters, it could be that the problem? Or maybe
> I'm doing something wrong. Has anybody any idea of what's happening??
>
> Thanks.
>
>
>
>
>
>
> Un saludo,
>
>
>
> ··
>
>
> David Alda Fernández de Lezea
>
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
>
>
>
> IKT
>
> Granja Modelo s/n · 01192 · Arkaute (Araba)
>
>
> ··
> Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
> ··
> email: da...@ikt.esweb: www.ikt.es
> 
> ··
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] bounds

2009-11-10 Thread bartvde
You mean alert(map.getExtent().toString()); ?

Best regards,
Bart

> Hi All,
>
>
>
>
>
> I am trying to get the BBox of the current view by clicking a link
>
>
>
> The following works at requesting the file
>
>
>
>var layer = new OpenLayers.Layer.Vector("POIs", {
>
> strategies: [new OpenLayers.Strategy.BBOX({resFactor:
> 1.1})],
>
> protocol: new OpenLayers.Protocol.HTTP({
>
> url: "textfile.php",
>
> format: new OpenLayers.Format.Text()
>
> })
>
> })
>
>
>
> And it returns
>
>
>
> Textfile.php?bbox=0.502699952,-36.9792000164,49.654700048,-20.1855999836
>
>
>
> I would like to somehow click a link and just alert this,
>
> Do you think it's possible?
>
>
>
> K-
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Limit number of items they are displayed

2009-11-09 Thread bartvde
Why not edit the XML file and ditch the other features?

Best regards,
Bart

> On 09.11.2009 13:11, Andreas Hocevar wrote:
>>
>> How would you read a XML with GeoRSS? If you are doing WFS, you can use
>> maxFeatures to limit the number of results.
>>
>> Regards,
>> Andreas.
>>
>
> Hi Andreas,
>
> i read a xml file like this:
>
>var yelp = new OpenLayers.Icon("radar.png", new
> OpenLayers.Size(35,35));
>  var newl1 = new OpenLayers.Layer.GeoRSS( 'Agenda', 'events.xml',
> {'icon':yelp}, maxfeatures: 10);
>  map.addLayer(newl1, popupClass);
>
>
> I'm not sure that maxfeatures is at the correct place (don't works
> actually) :)
>
> The file event.xml have 100-200 items , so i want just show the first 10
> items
>
> Thanks,
>
> Fred
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Openlayers Support for WPS

2009-11-02 Thread bartvde
No, not at this time.

Patches/contributions welcome ofcourse.

Best regards,
Bart

> Hi,
>
> Is Openlayers supporting WPS requests?.
>
>
>
>
> Regards
>
> Sajeer
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WMSGetFeatureInfo Format - get bounds

2009-10-29 Thread bartvde
Hi Alexandre,

so you only have the boundedBy element and not the actual geometry in the
output?

If so, I don't think this is currently possible, can you please file an
enhancement bug in Trac?

The parsing of the geometry was added in:

http://trac.openlayers.org/changeset/9178

Best regards,
Bart

> Hi list,
>
>   I'm using Format.WMSGetFeatureInfo.read_msGMLOutput() for
> getFeatureInfo requests.  In the response, I can see the bbox of the
> feature returned [1].  That would be enough to be able to recenter on
> the feature.  The only problem is : vector features created from
> read_msGMLOutput don't have the bound read from [1] (it remains
> 'null').  Is there a way to accomplish this with the trunk version of OL
> ?  Anyone already accomplished this ?  Any hints ?
>
>   Thanks a lot,
>
> Alexandre
>
> [1]
>
> |
> ||  
> ||-189513.106700,493755.024100
> -185697.319000,495686.861800
> ||  
> ||
>
> |
>
> --
> Alexandre Dubé
> Mapgears
> www.mapgears.com
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WMS and WFS layers

2009-10-29 Thread bartvde
Hi,

don't use Layer.WFS anymore, use Layer.Vector with a WFS Protocol, please
check out the following OL example:

wfs-protocol.html

Best regards,
Bart

>
> Hi list,
> I have been using WMS layers served up by geoserver no problem up to now.
> I would like to try using WFS layers, but am having a little difficulty. I
> cant see what I am doing wrong.
> Can anyone spot anything wrong in what Im doing?
>
> This is what I use to set up a WMS layer:
>   // setup WMS layer
> statesWMS = new OpenLayers.Layer.WMS(
> "American states", "http://ncg.nuim.ie/geoserver/wms";,
> {
> layers: 'states',
> styles: '',
> format: format,
> tiled: 'true',
> transparent: "true",
> tilesOrigin : "-127.6195006499,23.7351786"
> },
> {buffer: 1}
> );
>
> This is what I use to set up a WFS layer:
> //setup WFS layer
>  statesWFS = new OpenLayers.Layer.WFS(
>  "States WFS",  "http://ncg.nuim.ie/geoserver/wfs";,
> {
>   typename: 'states',
>   isBaseLayer: 'false',
>   } );
>
> The WMS layer displays fine, but the WFS shows nothing, seems like just a
> transparent layer.
> I set up the datastore/coverage etc fine in Geoserver (I think) as the WMS
> gives no problems.
>
> The working example is here:
> http://www.eoinmaca.com/maps/OpenLayers/wmswfs.htm
>
> Any help greatly appreciated.
> Thanks,
>
> Eoinyp
>
> --
> View this message in context:
> http://n2.nabble.com/WMS-and-WFS-layers-tp3912168p3912168.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] loading panel update

2009-10-19 Thread bartvde
Hi Max,

thanks for your feedback, I've fixed this up [1] by giving the css class a
display:none to start with, so it only shows when a loadstart event is
actually coming in, and like you said the Google layer does not support
the load events currently.

[1] http://trac.openlayers.org/changeset/9749

Best regards,
Bart

Hi bartvde,

I found another Problem with the "Loading-Panel".
If you add the LoadingPanel to a map which consists only of Google layer the
Loadingpanel appears but did not disappear when the layer are loaded.
I know that the reason is that Googlelayer didnt fire a loadend event.

I solved the Problem for me by editing the draw function of the loading
panel where i set the display style to 'none'.
My drawfunction now looks like this:

draw : function() {
OpenLayers.Control.prototype.draw.apply(this, arguments);
this.div.style.display = "none";
return this.div;
},

Is there a better way for solving this Problem?
I need this solution because in our application it is possible to add and
remove WMS layer.

With kind regards
Max Weidemann

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] loading panel update

2009-10-18 Thread bartvde
Recently a few issues have been reported with the loading panel addin,
e.g. not being able to use the mousewheel zoom when the loading panel is
visible, and not being able to click a marker. This was all caused by the
loading panel div having the same size as the map. I've modified the
loading panel code [1] so that the div size is only the size of the
animated gif (update to the css class), which should minimize problems.
Ofcourse there will still be issues when somebody is exactly on top of the
animated gif, but chances are much less that this will lead to problems.

Please try out the code (svn update from 
http://svn.openlayers.org/addins/loadingPanel/trunk/) and report any
issues. TIA.

Best regards,
Bart

[1] http://trac.openlayers.org/changeset/9744

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Convert Coordinates EPSG:4326 to 31466 doesn?t work ??

2009-10-15 Thread bartvde
Ask on the PROJ.4 list.

http://lists.maptools.org/mailman/listinfo/proj

Best regards,
Bart

>
> Thanks,
>
> But I´ve never found working towgs84 Coordinates for Germany, NRW.
> Each time the points differes 50m!
>
> Where can I get the right values?
>
> Greetings
>
> Byte
>
>
>
> bartvde wrote:
>>
>> I think you need to add the right towgs84 parameters to your projection
>> definition.
>>
>> For Dutch national grid I use (I added the towgs84 params):
>> Proj4js.defs["EPSG:28992"] = "+proj=sterea +lat_0=52.156160
>> +lon_0=5.387639 +k=0.079 +x_0=155000 +y_0=463000
>> +ellps=bessel
>> +units=m
>> +towgs84=565.2369,50.0087,465.658,-0.406857330322398,0.350732676542563,-1.8703473836068,4.0812
>> +no_defs ";
>>
>> Google [1] or check the EPSG database for the right towgs84 settings for
>> your projection.
>>
>> [1] http://osdir.com/ml/gis.geotools2.user/2006-12/msg00069.html
>>
>> Best regards,
>> Bart
>>
>>>
>>> Hi,
>>>
>>> it seems to work.
>>> But e.g. converting from 4326 to 31466 is very naccurately
>>> <http://dict.leo.org/ende?lp=ende&p=5tY9AA&search=inaccurately>
>>> naccurately.
>>> There a difference of 10-100 meters!!
>>> ??
>>>
>>> Greetings
>>>
>>> Byte
>>>
>>>
>>> Tobias Wendorff (via Nabble) schrieb:
>>>> Bytechanger schrieb:
>>>> > MsgBox shows source coordinates  no convert!
>>>>
>>>> Download proj4js and include it:
>>>>
>>>> >>> src="../proj4js/lib/proj4js.js">
>>>> >>> src="../proj4js/lib/projCode/merc.js">
>>>> >>> src="../proj4js/lib/projCode/tmerc.js">
>>>>
>>>> Then define everthing:
>>>> Proj4js.defs['EPSG:4326'] = '+proj=longlat +ellps=WGS84 +datum=WGS84
>>>> +nadgri...@null +no_defs';
>>>>
>>>> Proj4js.defs['EPSG:900913']= '+proj=merc +a=6378137 +b=6378137
>>>> +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null
>>>> +no_defs';
>>>>
>>>> Proj4js.defs['EPSG:31466'] = '+proj=tmerc +lat_0=0 +lon_0=6
>>>> +k=1.00
>>>> +x_0=250 +y_0=0 +ellps=bessel +units=m +nadgri...@null +no_defs';
>>>>
>>>> Okay, you don't need 909913 and merc, I think ... but I like to
>>>> have control about these settings.
>>>>
>>>> ___
>>>> Users mailing list
>>>> [hidden email]
>>>> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3788136&i=0>
>>>> http://openlayers.org/mailman/listinfo/users
>>>>
>>>>
>>>> 
>>>> View message @
>>>> http://n2.nabble.com/Convert-Coordinates-EPSG-4326-to-31466-doesn-t-work-tp3787906p3788136.html
>>>>
>>>> To unsubscribe from Convert Coordinates EPSG:4326 to 31466 doesn?t
>>>> work ??, click here
>>>> < (link removed) =>.
>>>>
>>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/Convert-Coordinates-EPSG-4326-to-31466-doesn-t-work-tp3787906p3793412.html
>>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>>> ___
>>> Users mailing list
>>> Users@openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>>
>>
>>
>> ___
>> Users mailing list
>> Users@openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
> --
> View this message in context:
> http://n2.nabble.com/Convert-Coordinates-EPSG-4326-to-31466-doesn-t-work-tp3787906p3828964.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Event/Msg when all LayerPics are loaded?

2009-10-15 Thread bartvde
There is the loadend event on a per layer basis.

There is also the addin called LoadingPanel which automates this for you.

http://trac.openlayers.org/wiki/Addins/LoadingPanel

Best regards,
Bart

>
> Hi,
>
> I load a map from a WMS-Server or local png data.
>
> Is there a event or something else, wich tells me, that
> all pics are loaded???
>
> (Sometimes it takes very long...)
>
> Greetings
>
> Byte
> --
> View this message in context:
> http://n2.nabble.com/Event-Msg-when-all-LayerPics-are-loaded-tp3828940p3828940.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Catching WMS Exceptions

2009-10-15 Thread bartvde
Hi,

check out OpenLayers.Util.onImageLoadError

Best regards,
Bart

> Hi,
>
> I use GeoServer as WMS service provider. Does exist the possibility to add
> a
> listener to the OpenLayers.Layer.WMS
> object in order to catch the 'onerror' event ? I noticed that the
> 'onerror'
> event is not present in the OpenLayers.Map.
>
>
> Best regards,
>
> Tobia Di Pisa
>
> 2009/10/15 
>
>> Hi,
>>
>> I don't think you can currently. You can use onerror of the img, but it
>> won't give you the contents.
>>
>> A way would be loading the images through AJAX, which has disadvantages
>> as
>> well (same origin policy and needs changes to OpenLayers).
>>
>> Maybe the new WMS POST layer has a facility for this, but I don't know
>> if
>> your WMS service supports POST?
>>
>>
>> http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Layer/WMS/Post.js
>>
>> Best regards,
>> Bart
>>
>> > Hi all,
>> >
>> > I have to effect the WMS requests specifying as parameter '
>> exceptions:
>> > "application/vnd.ogc.se_xml" ' insteed ' exceptions:
>> > "application/vnd.ogc.se_inimage" '.
>> > How can I catch the server response in the case that the exception is
>> > verified?
>> >
>> >
>> > Regards,
>> >
>> >   Tobia Di Pisa
>> > ___
>> > Users mailing list
>> > Users@openlayers.org
>> > http://openlayers.org/mailman/listinfo/users
>> >
>>
>>
>>
>>
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Catching WMS Exceptions

2009-10-15 Thread bartvde
Hi,

I don't think you can currently. You can use onerror of the img, but it
won't give you the contents.

A way would be loading the images through AJAX, which has disadvantages as
well (same origin policy and needs changes to OpenLayers).

Maybe the new WMS POST layer has a facility for this, but I don't know if
your WMS service supports POST?

http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Layer/WMS/Post.js

Best regards,
Bart

> Hi all,
>
> I have to effect the WMS requests specifying as parameter ' exceptions:
> "application/vnd.ogc.se_xml" ' insteed ' exceptions:
> "application/vnd.ogc.se_inimage" '.
> How can I catch the server response in the case that the exception is
> verified?
>
>
> Regards,
>
>   Tobia Di Pisa
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Convert Coordinates EPSG:4326 to 31466 doesn?t work ??

2009-10-09 Thread bartvde
I think you need to add the right towgs84 parameters to your projection
definition.

For Dutch national grid I use (I added the towgs84 params):
Proj4js.defs["EPSG:28992"] = "+proj=sterea +lat_0=52.156160
+lon_0=5.387639 +k=0.079 +x_0=155000 +y_0=463000 +ellps=bessel
+units=m
+towgs84=565.2369,50.0087,465.658,-0.406857330322398,0.350732676542563,-1.8703473836068,4.0812
+no_defs ";

Google [1] or check the EPSG database for the right towgs84 settings for
your projection.

[1] http://osdir.com/ml/gis.geotools2.user/2006-12/msg00069.html

Best regards,
Bart

>
> Hi,
>
> it seems to work.
> But e.g. converting from 4326 to 31466 is very naccurately
> 
> naccurately.
> There a difference of 10-100 meters!!
> ??
>
> Greetings
>
> Byte
>
>
> Tobias Wendorff (via Nabble) schrieb:
>> Bytechanger schrieb:
>> > MsgBox shows source coordinates  no convert!
>>
>> Download proj4js and include it:
>>
>> 
>> > src="../proj4js/lib/projCode/merc.js">
>> > src="../proj4js/lib/projCode/tmerc.js">
>>
>> Then define everthing:
>> Proj4js.defs['EPSG:4326'] = '+proj=longlat +ellps=WGS84 +datum=WGS84
>> +nadgri...@null +no_defs';
>>
>> Proj4js.defs['EPSG:900913']= '+proj=merc +a=6378137 +b=6378137
>> +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null
>> +no_defs';
>>
>> Proj4js.defs['EPSG:31466'] = '+proj=tmerc +lat_0=0 +lon_0=6 +k=1.00
>> +x_0=250 +y_0=0 +ellps=bessel +units=m +nadgri...@null +no_defs';
>>
>> Okay, you don't need 909913 and merc, I think ... but I like to
>> have control about these settings.
>>
>> ___
>> Users mailing list
>> [hidden email]
>> 
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>> 
>> View message @
>> http://n2.nabble.com/Convert-Coordinates-EPSG-4326-to-31466-doesn-t-work-tp3787906p3788136.html
>>
>> To unsubscribe from Convert Coordinates EPSG:4326 to 31466 doesn?t
>> work ??, click here
>> < (link removed) =>.
>>
>>
>
>
> --
> View this message in context:
> http://n2.nabble.com/Convert-Coordinates-EPSG-4326-to-31466-doesn-t-work-tp3787906p3793412.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] map paning issue

2009-09-28 Thread bartvde
You can use as much of plain ExtJS in your application as you want when
using GeoExt.

Best regards,
Bart

>
> hi Bart,
> Thanx for that tip.I had already gone through that.i deliberately chose to
> not use GeoExt since  i want to use more of plain Ext.Since i am afraid
> that
> many of the luxouries  of Ext might not be available in GeoExt I am
> looking
> to implement the zoom slider using simple Ext js.Is there any other go?
> regards
> sumith
> --
> View this message in context:
> http://n2.nabble.com/map-paning-issue-tp3733917p3733955.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] map paning issue

2009-09-28 Thread bartvde
Hi,

please check out GeoExt:

http://dev.geoext.org/trunk/geoext/examples/zoomslider.html

Best regards,
Bart

>
> hello all,
>  I am stuck with an issue which already took a couple of hours of
> mine.Since
> i am  still a novice,i cannot figureout whats the root cause.I have an ext
> Js slider over my map for zooming.I cannot stop my map from paning when my
> slider is moved...thanks in advanec for any tips..
>
> sumith
>
> --
> View this message in context:
> http://n2.nabble.com/map-paning-issue-tp3733917p3733917.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Support for Cursors?

2009-09-10 Thread bartvde
Hi,

just add cursor: default to the css class of the panzoombar in your css.

.olControlPanZoomBar {
   cursor: default;
}

Best regards,
Bart

>
> Hello,
>
> Thanks for this tip. I changed the cursor for panning as mentionned below.
> But can you also please tell me how to get the plain arrow cursor back
> when
> pointing/clicking at the standard OL navigation panel ( f.i. the
> scale-slider )? Because, of course, it keeps the last cursor changed to,
> but
> that is a strange sight ...
> How did you manage ?
>
> Greetings,
>
>
>
> Bart van den Eijnden (OSGIS)-2 wrote:
>>
>> Hi Bill,
>>
>> yes it's in 2.8.
>>
>> You need to add css classes depending on the displayClass + "Active"
>>  of a control, e.g. this is what I have:
>>
>> .olControlDragPanActive {
>> cursor: url(lib/openlayers/theme/default/img/pan.cur) 16 16,
>> url(../geoservices2.2/lib/openlayers/theme/default/img/pan.cur), auto;
>> }
>> ...
>>
>
> --
> View this message in context:
> http://n2.nabble.com/Support-for-Cursors-tp3192209p3616404.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] transparent param not sent to WMS service

2009-09-09 Thread bartvde
Hi,

you should use:

 var CTISwms = new OpenLayers.Layer.WMS( "CTI-S WMS",
 "http://wms.sst-sw.rncan.gc.ca/wms/toporama_en";,
 {layers: 'railway_30m', format: 'image/png', transparent: true},
 {isBaseLayer: false, visibility: true,
 transitionEffect: 'resize'});

Please not the 3rd parameter is the layer parameters, which are sent to
the server. The 4rd parameter is the layer options.

Best regards,
Bart

>
> Hello,
>
> If there is something I am doing incorrectly in trying to access the
> railway_30m layer (below) transparently, please let me know. Otherwise, I
> thought this was something I should draw someone's attention to.
>
> Although this item is somewhat related to
> http://n2.nabble.com/WMS-transparent-TRUE-versus-true-td1823416.html#a1823416
> and http://trac.openlayers.org/ticket/678 (which was, I believe, submitted
> to address the problem reported in the first link), I don't believe those
> items dealt with actually trying to set transparency on a WMS layer as
> suggested.
>
> In OpenLayers 2.8, given the following example:
>
> var options = {
> projection: "EPSG:4269",
> maxExtent: new OpenLayers.Bounds(-135, 38, -50, 78),
> };
> this.map = new OpenLayers.Map('map', options );
>
> var CTISwms = new OpenLayers.Layer.WMS( "CTI-S WMS",
> "http://wms.sst-sw.rncan.gc.ca/wms/toporama_en";,
> {layers: 'railway_30m', format: 'image/png'},
> {isBaseLayer: false, visibility: true, transitionEffect:
> 'resize'});
> this.map.addLayers([CTISwms]);
>
> var CTIS_wms_limits = new OpenLayers.Layer.WMS( "CTI-S WMS, limits",
>  "http://wms.sst-sw.rncan.gc.ca/wms/toporama_en";,
> {layers: 'limits', format: 'image/png'},
> {isBaseLayer: true, visibility: true, transitionEffect:
> 'resize'});
> this.map.addLayers([CTIS_wms_limits]);
>
> this.map.zoomToMaxExtent();
>
>
> I have been unable to set the railway_30m layer to be transparent using
> any
> of the following syntax:
>
> var CTISwms = new OpenLayers.Layer.WMS( "CTI-S WMS",
> "http://wms.sst-sw.rncan.gc.ca/wms/toporama_en";,
> {layers: 'railway_30m', format: 'image/png'},
> {isBaseLayer: false, transparent: true, visibility: true,
> transitionEffect: 'resize'});
>
> var CTISwms = new OpenLayers.Layer.WMS( "CTI-S WMS",
> "http://wms.sst-sw.rncan.gc.ca/wms/toporama_en";,
> {layers: 'railway_30m', format: 'image/png'},
> {isBaseLayer: false, transparent: "true", visibility: true,
> transitionEffect: 'resize'});
>
> var CTISwms = new OpenLayers.Layer.WMS( "CTI-S WMS",
> "http://wms.sst-sw.rncan.gc.ca/wms/toporama_en";,
> {layers: 'railway_30m', format: 'image/png'},
> {isBaseLayer: false, visibility: true, transitionEffect: 'resize',
> params: {TRANSPARENT: true}});
>
> var CTISwms = new OpenLayers.Layer.WMS( "CTI-S WMS",
> "http://wms.sst-sw.rncan.gc.ca/wms/toporama_en";,
> {layers: 'railway_30m', format: 'image/png'},
> {isBaseLayer: false, visibility: true, transitionEffect: 'resize',
> params: {TRANSPARENT: "true"}});
>
>
> None of the above will actually send the TRANSPARENT parameter in the
> request to the WMS service. The only way I was able to get the request to
> be
> sent with that parameter and to get the layer to display transparently was
> as follows:
>
> var CTISwms = new OpenLayers.Layer.WMS( "CTI-S WMS",
> "http://wms.sst-sw.rncan.gc.ca/wms/toporama_en?transparent=true";,
> {layers: 'railway_30m', format: 'image/png'},
> {isBaseLayer: false, visibility: true, transitionEffect:
> 'resize'});
>
>
> Also, I noticed while investigating this that both WMS.js and
> ArcGIS93Rest.js assume that params.TRANSPARENT is a string and do not
> handle
> boolean anymore as suggested by the fix noted above.
>
> --
> View this message in context:
> http://n2.nabble.com/transparent-param-not-sent-to-WMS-service-tp3615475p3615475.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Bug in LoadingPanel + testcase

2009-09-09 Thread bartvde
Hi Manel,

what is the sequence in which you add the controls? Are you adding the
LoadingPanel as the first control before adding the Navigation control?

See also:

http://openlayers.org/pipermail/dev/2008-November/003855.html

Best regards,
Bart

> Hi,
>
> there is a bug in LoadingPanel that prevents wheel events from being
> processed. This happens only when used with OpenLayers.Control.Navigation.
>
> It works with the default usage:
> http://dev.openlayers.org/addins/loadingPanel/trunk/examples/loadingpanel.html
>
> but making these changes to the same example will allow anyone to
> reproduce the bug (tested in FF3 and IE7):
>
> in the init function:
> ...
> //   map.addControl(new OpenLayers.Control.PanZoomBar());
> //   map.addControl(new OpenLayers.Control.MouseToolbar());
>map.addControl(new OpenLayers.Control.Navigation());
> ...
>
> this is, comment out PanZoom and MouseToolbar and add Navigation.
>
> If loading panel is showing because tiles are loading, you *can not* use
> the mouse wheel to zoom in/out. After loading or deactivating the loading
> panel mouse wheel works as usual.
>
> Here are some previous reports that may offer some more details on the
> problem:
> http://openlayers.org/pipermail/users/2009-February/010246.html
> http://openlayers.org/pipermail/users/2008-December/009508.html
>
> --
> Manel Clos
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Layer from GML loading only for the first time

2009-09-07 Thread bartvde
Hi,

you are probably running into browser cache. So either change the cache
settings on your webserver for the XML1 subdir (tell the browser to never
cache the file), or append a random number to the url.

Best regards,
Bart

>
> Dear Friends,
>
> I am having a query builder which allows an user to select one feature at
> a
> time.
> The geometry for this feature is then populated into a GML file format
> using
> another xml.
> So every time an user selects one feature the GML file is deleted and a
> new
> one created with the geometry of the new feature.
>
> Although GML file is created with every change in selection Openlayers is
> unable to load the changed GML and show it on the map.
>
> So openlayers is able to display the data from the GML for the first time
> only. So from second and subsequent selection it shows only the first
> feature on the map.
>
> The code is:
>
> map.addLayer(new OpenLayers.Layer.GML('choice_features',
> "XML1/FeatureGML.xml"));
>
> Is it a bug?
> If not how to tackle the problem.
>
> Thanks in advance.
> --
> View this message in context:
> http://n2.nabble.com/Layer-from-GML-loading-only-for-the-first-time-tp3596382p3596382.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] File KML generated does not contains any style information

2009-09-01 Thread bartvde
Hi,

your question was already answered yesterday, can you please stop
reposting this question? TIA.

http://openlayers.org/pipermail/users/2009-August/013525.html

Best regards,
Bart

> Hi all,
> I'm trying to export kml using 'write' function. The kml file is generated
> but it doesn't contains any style information (color, image etc.) and it's
> represented on Google Earth as a white line.
> How can I put the style information in the file?
>
>
>
> Here is just a part of my code:
>
> var gml3 = new OpenLayers.Format.GML.v2(gmlOptionsIn4);
>
> var provaLayerFeatures = new OpenLayers.Layer.Vector("provaLayerFeatures",
> {
> isBaseLayer: false
> });
>
> featuresExpKml = gml3.read(unescape(g.geometry));
>
> for (var t=0; t   
> featuresExpKml[t].geometry.transform(srcProj, 
> destProj);
>   
> 
> provaLayerFeatures.addFeatures(featuresExpKml);
>
> g.geometryKml = escape(kmlout.write(provaLayerFeatures.features));
>
>
>
>
>
> Thanks for your help,
> Mario
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] GML Format and IE7

2009-08-24 Thread bartvde
Hi,

can you provide a bit of context for your code fragment (what type of
layer are you using)? Post a bit more code.

formatOptions is not the same as style options. Format is for reading XML
data, and has nothing to do with styling.

Best regards,
Bart

> Hey Bart,
>
> I suppose you mean:
>
> format: new OpenLayers.Format.GML(),
>
> but doesn't work neither.
>
> Thank you for your help
>
> Manu.
>
> On Mon, Aug 24, 2009 at 9:28 AM,  wrote:
>
>> Hi,
>>
>> try:
>>
>> format: OpenLayers.Format.GML(),
>>
>> Best regards,
>> Bart
>>
>> > Hi everybody!,
>> >
>> > I'm having one error when displaying a layer in OpenLayers (I'm using
>> the
>> > current svn version with mapserver). I have this configuration for my
>> > layer:
>> >
>> >   transparent: true,
>> >   format: OpenLayers.Format.GML,
>> >   formatOptions: {
>> > "default": style,
>> > "select": {
>> > fillColor: "#8aeeef",
>> > strokeColor: "#32a8a9"
>> >   }
>> >
>> > The problem is that when I plot this layer over my map, in IE7 i get a
>> > "this.format is null or not an object" error, (i can see it in firebug
>> > too).
>> > In firefox the format is ok, but in IE7 all the colors of the layer
>> are
>> > black.
>> >
>> > Any thoughts about this?
>> >
>> > Thank you very much in advance.
>> > ___
>> > Users mailing list
>> > Users@openlayers.org
>> > http://openlayers.org/mailman/listinfo/users
>> >
>>
>>
>>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] GML Format and IE7

2009-08-24 Thread bartvde
Hi,

try:

format: OpenLayers.Format.GML(),

Best regards,
Bart

> Hi everybody!,
>
> I'm having one error when displaying a layer in OpenLayers (I'm using the
> current svn version with mapserver). I have this configuration for my
> layer:
>
>   transparent: true,
>   format: OpenLayers.Format.GML,
>   formatOptions: {
> "default": style,
> "select": {
> fillColor: "#8aeeef",
> strokeColor: "#32a8a9"
>   }
>
> The problem is that when I plot this layer over my map, in IE7 i get a
> "this.format is null or not an object" error, (i can see it in firebug
> too).
> In firefox the format is ok, but in IE7 all the colors of the layer are
> black.
>
> Any thoughts about this?
>
> Thank you very much in advance.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Problem with a WFS request

2009-08-21 Thread bartvde
Hi Arthur,

check out the console tab of Firebug, and make sure XMLHttp requests are
on (check out options on the right in Firebug).

It's because OpenLayers uses POST by default for WFS, so that's why you
don't see any parameters. You will see the POST body though in Firebug.

Best regards,
Bart

> I have no attributes because I use "gml_exclude_items" "all" (for now I
> only need the vectors to display so I thought it was good to minimize
> the request because it's a huge file). But I tried without, with
> "gml_include_items" "all" and with the inclusion of the ID attribute
> only, I can see all these results in the XML flow but still not my
> vectors in OpenLayers.
>
> I hope I am looking at the right place in Firebug : I am looking at the
> Network tab and I see the WFS request. I am working with two computers :
> one is the WFS server and the other is my working computer, with
> OpenLayers and the webpage (I am working on a local server: MAMP on this
> computer). The two computers are in a local network so I don't think
> there is any problem with this (no proxy).
>
> So I have two requests in Firebug :
>
> - one is a request to the local server (MAMP) called
> "http://localhost:/test_WFS/test_WFS.php";
> - the other is a request to the second computer :
> "http://IP/cgi-bin/mapserv_5.4.1?map=/var/www/html/WFS_server/test.map";
>
> Is this normal that there is no options after the address of the mapfile
> ? When I look at the URL request I did for testing I see the SERVICE,
> TYPENAME, BBOX, etc. Also there is no data download.
>
> Best regards,
>
> Arthur
>
> bart...@osgis.nl a écrit :
>> Your GML looks okay to me. You don't have any attributes (next to the
>> geometry), but that should be no problem.
>>
>> Can you see the request go off with Firebug at all when adding the
>> vector
>> layer to your map? Are you using a proxy in between or is the traffic
>> local?
>>
>> Best regards,
>> Bart
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Problem with a WFS request

2009-08-21 Thread bartvde
Your GML looks okay to me. You don't have any attributes (next to the
geometry), but that should be no problem.

Can you see the request go off with Firebug at all when adding the vector
layer to your map? Are you using a proxy in between or is the traffic
local?

Best regards,
Bart

> Indeed, I see ms:aster_gdem in the XML flow. I added featurePrefix but
> it's still not working.
> Maybe I did some bad things in the map file ? But if it works when I
> make an URL request...
>
> I added an ID attribute to my shapefile objects to indicate the
> gml_featureid in the map file. Here is a sample of the XML flow I obtain
> with an URL request
> (http://IP/cgi-bin/mapserv_5.4.1?map=/var/www/html/WFS_server/test.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=aster_gdem&BBOX=70,35,75,37)
> :
>
> 
> xmlns:ms="http://mapserver.gis.umn.edu/mapserver";
>xmlns:wfs="http://www.opengis.net/wfs";
>xmlns:gml="http://www.opengis.net/gml";
>xmlns:ogc="http://www.opengis.net/ogc";
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>xsi:schemaLocation="http://www.opengis.net/wfs
> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd
>http://mapserver.gis.umn.edu/mapserver
> http://IP/cgi-bin/mapserv_5.4.1?map=/var/www/html/WFS_server/test.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=aster_gdem&OUTPUTFORMAT=XMLSCHEMA";>
>   
>   
>   72.999889,34.999868
> 75.43,37.21
>   
>   
> 
>   
>
> 
> 
> 72.999889,34.999868
> 74.000115,36.94
> 
> 
> 
> 
>   
>
> 
>   72.999889,36.94 74.000115,36.94
> 74.000115,34.999868 72.999889,34.999868 72.999889,36.94
> 
> 
>   
> 
> 
>   
> 
>
> 
>   
> 
> 
> 74.000115,36.94
> 75.43,37.21
> 
> 
> 
>
> 
>   
> 
>   74.000115,37.21 75.43,37.21
> 75.43,36.94 74.000115,36.94 74.000115,37.21
> 
> 
>   
> 
> 
>
>   
> 
> 
>
> Thanks again for your help,
>
> Best regards,
>
> Arthur
>
> bart...@osgis.nl a écrit :
>> Hi,
>>
>> is there any prefix used in your GML, again Mapserver defaults to ms:,
>> so
>> in that case you need to add:
>>
>> featureType: "aster_gdem",
>> featureNS: "http://mapserver.gis.umn.edu/mapserver";,
>> featurePrefix: "ms"
>>
>> Best regards,
>> Bart
>>
>>> Thank you !
>>>
>>> Now I think I am close but it's still not working... Vectors are not
>>> displayed. Do you see where I am wrong ?
>>>
>>> var map, wms, test_WFS;
>>> function init()
>>> {
>>> map = new OpenLayers.Map('map', {
>>> controls: [new OpenLayers.Control.Navigation(),
>>> new OpenLayers.Control.PanZoom(),
>>> new OpenLayers.Control.LayerSwitcher()
>>> ]
>>> });
>>>
>>> wms = new OpenLayers.Layer.WMS("OpenLayers WMS",
>>> "http://labs.metacarta.com/wms/vmap0";, {
>>> layers:'basic'
>>> }
>>> );
>>>
>>> test_WFS = new OpenLayers.Layer.Vector("test WFS", {
>>> strategies: [new OpenLayers.Strategy.BBOX()],
>>> protocol: new OpenLayers.Protocol.WFS({
>>> url:
>>> "http://IP-address/cgi-bin/mapserv_5.4.1?map=/var/www/html/WFS_server/test.map";,
>>> featureType: "aster_gdem",
>>> featureNS: "http://mapserver.gis.umn.edu/mapserver";
>>> })
>>> });
>>>
>>> map.addLayers([wms, test_WFS]);
>>>
>>> map.zoomToMaxExtent();
>>> }
>>>
>>> Best regards,
>>>
>>> Arthur
>>>
>>> bart...@osgis.nl a écrit :
 Hi Arthur,

 yes the BBOX strategy will take care of that.

 The GML version is determined by the protocol version, WFS 1.0 is tied
 to
 GML2, whereas WFS 1.1 is tied to GML3. The WFS protocol version
 defaults
 to 1.0, so you will get the Format.GML.v2 parser. So you should not
 need
 to change anything.

 You can retrieve the url for featureNS from a WFS DescribeFeatureType
 request (intranet url, for example only):

 http://test.intranet.rijkswaterstaat.nl/services/geoservices/overzichtskaartnl?service=WFS&request=DescribeFeatureType&version=1.0.0

 then check the source and look for targetNamespace, by default this is
 http://mapserver.gis.umn.edu/mapserver

 Best regards,
 Bart

>>
>>
>>
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Problem with a WFS request

2009-08-21 Thread bartvde
Hi,

is there any prefix used in your GML, again Mapserver defaults to ms:, so
in that case you need to add:

featureType: "aster_gdem",
featureNS: "http://mapserver.gis.umn.edu/mapserver";,
featurePrefix: "ms"

Best regards,
Bart

> Thank you !
>
> Now I think I am close but it's still not working... Vectors are not
> displayed. Do you see where I am wrong ?
>
> var map, wms, test_WFS;
> function init()
> {
> map = new OpenLayers.Map('map', {
> controls: [new OpenLayers.Control.Navigation(),
> new OpenLayers.Control.PanZoom(),
> new OpenLayers.Control.LayerSwitcher()
> ]
> });
>
> wms = new OpenLayers.Layer.WMS("OpenLayers WMS",
> "http://labs.metacarta.com/wms/vmap0";, {
> layers:'basic'
> }
> );
>
> test_WFS = new OpenLayers.Layer.Vector("test WFS", {
> strategies: [new OpenLayers.Strategy.BBOX()],
> protocol: new OpenLayers.Protocol.WFS({
> url:
> "http://IP-address/cgi-bin/mapserv_5.4.1?map=/var/www/html/WFS_server/test.map";,
> featureType: "aster_gdem",
> featureNS: "http://mapserver.gis.umn.edu/mapserver";
> })
> });
>
> map.addLayers([wms, test_WFS]);
>
> map.zoomToMaxExtent();
> }
>
> Best regards,
>
> Arthur
>
> bart...@osgis.nl a écrit :
>> Hi Arthur,
>>
>> yes the BBOX strategy will take care of that.
>>
>> The GML version is determined by the protocol version, WFS 1.0 is tied
>> to
>> GML2, whereas WFS 1.1 is tied to GML3. The WFS protocol version defaults
>> to 1.0, so you will get the Format.GML.v2 parser. So you should not need
>> to change anything.
>>
>> You can retrieve the url for featureNS from a WFS DescribeFeatureType
>> request (intranet url, for example only):
>>
>> http://test.intranet.rijkswaterstaat.nl/services/geoservices/overzichtskaartnl?service=WFS&request=DescribeFeatureType&version=1.0.0
>>
>> then check the source and look for targetNamespace, by default this is
>> http://mapserver.gis.umn.edu/mapserver
>>
>> Best regards,
>> Bart
>>
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Problem with a WFS request

2009-08-21 Thread bartvde
Hi Arthur,

yes the BBOX strategy will take care of that.

The GML version is determined by the protocol version, WFS 1.0 is tied to
GML2, whereas WFS 1.1 is tied to GML3. The WFS protocol version defaults
to 1.0, so you will get the Format.GML.v2 parser. So you should not need
to change anything.

You can retrieve the url for featureNS from a WFS DescribeFeatureType
request (intranet url, for example only):

http://test.intranet.rijkswaterstaat.nl/services/geoservices/overzichtskaartnl?service=WFS&request=DescribeFeatureType&version=1.0.0

then check the source and look for targetNamespace, by default this is
http://mapserver.gis.umn.edu/mapserver

Best regards,
Bart

> Thank you for your answer.
>
> If I understand, the BBOX strategy option will do the stuff with the
> limits to take into account for not reading the whole data. I have some
> other questions :
>
> - I am not sure which URL to put for "featureNS"?
> - I also had a problem of GML format : I used the option
> OUTPUTFORMAT=GML2 in the URL request, because I could not make
> OpenLayers read GML3 (it's probably possible but I don't know how). How
> can I put this option in the code of the layer ? If it's not possible,
> how can I read the GML3 Mapserver is generating with OpenLayers ?
>
> Best regards,
>
> Arthur
>
> bart...@osgis.nl a écrit :
>> Hi,
>>
>> please check examples\wfs-protocol.html for the right way to do this as
>> of
>> OpenLayers 2.8.
>>
>> Best regards,
>> Bart
>>
>>
>>> Hello,
>>>
>>> I am trying to display part of the data of a big shapefile with a WFS
>>> request and BBOX to filter the data and display only the vectors
>>> contained in the map view.
>>>
>>> I just finished configuring the WFS server (Mapserver) : URL request is
>>> working and I could read the XML that I saved in a file with OpenLayers
>>> (for testing). Now I try to make the WFS request with OpenLayers and I
>>> don't understand what is the problem. I tried two solutions based on
>>> what I found on the net. Here is my OpenLayers code :
>>>
>>>
>>> var map, wms, test_WFS;
>>> function init()
>>> {
>>> map = new OpenLayers.Map('map', {
>>> controls: [new OpenLayers.Control.Navigation(),
>>> new OpenLayers.Control.PanZoom(),
>>> new OpenLayers.Control.LayerSwitcher()
>>> ]
>>> });
>>>
>>> wms = new OpenLayers.Layer.WMS("OpenLayers WMS",
>>> "http://labs.metacarta.com/wms/vmap0";,
>>> {layers:'basic'
>>> });
>>>
>>> //  test_WFS = new OpenLayers.Layer.WFS("test WFS",
>>> //
>>> "http://IP-address/cgi-bin/mapserv_5.4.1?map=/var/www/html/WFS_server/test.map&";,
>>> //  {service:'WFS', version:'1.1.0', request:'GetFeature',
>>> bbox:'70,35,75,37', typeName:'aster_gdem', outputFormat:'GML2'},
>>> //  {}
>>> //  );
>>>
>>> test_WFS = new OpenLayers.Layer.GML("test WFS", [
>>> "http://IP-address/cgi-bin/mapserv_5.4.1";,
>>> "?map=/var/www/html/WFS_server/test.map",
>>> "&SERVICE=WFS",
>>> "&VERSION=1.1.0",
>>> "&REQUEST=GetFeature",
>>> "&BBOX=70,35,75,37",
>>> "&TYPENAME=aster_gdem",
>>> "&OUTPUTFORMAT=GML2"].join(",")
>>> );
>>>
>>> map.addLayers([wms, test_WFS]);
>>>
>>> map.zoomToMaxExtent();
>>> }
>>>
>>>
>>> The test_WFS layer is not displaying and I don't know how to fix it.
>>>
>>> Thank you for your help !
>>>
>>> Arthur Delorme
>>>
>>> ___
>>> Users mailing list
>>> Users@openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>>
>>>
>>
>>
>>
>>
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Problem with a WFS request

2009-08-21 Thread bartvde
Hi,

please check examples\wfs-protocol.html for the right way to do this as of
OpenLayers 2.8.

Best regards,
Bart

> Hello,
>
> I am trying to display part of the data of a big shapefile with a WFS
> request and BBOX to filter the data and display only the vectors
> contained in the map view.
>
> I just finished configuring the WFS server (Mapserver) : URL request is
> working and I could read the XML that I saved in a file with OpenLayers
> (for testing). Now I try to make the WFS request with OpenLayers and I
> don't understand what is the problem. I tried two solutions based on
> what I found on the net. Here is my OpenLayers code :
>
>
> var map, wms, test_WFS;
> function init()
> {
> map = new OpenLayers.Map('map', {
> controls: [new OpenLayers.Control.Navigation(),
> new OpenLayers.Control.PanZoom(),
> new OpenLayers.Control.LayerSwitcher()
> ]
> });
>
> wms = new OpenLayers.Layer.WMS("OpenLayers WMS",
> "http://labs.metacarta.com/wms/vmap0";,
> {layers:'basic'
> });
>
> //  test_WFS = new OpenLayers.Layer.WFS("test WFS",
> //
> "http://IP-address/cgi-bin/mapserv_5.4.1?map=/var/www/html/WFS_server/test.map&";,
> //  {service:'WFS', version:'1.1.0', request:'GetFeature',
> bbox:'70,35,75,37', typeName:'aster_gdem', outputFormat:'GML2'},
> //  {}
> //  );
>
> test_WFS = new OpenLayers.Layer.GML("test WFS", [
> "http://134.157.122.201/cgi-bin/mapserv_5.4.1";,
> "?map=/var/www/html/WFS_server/test.map",
> "&SERVICE=WFS",
> "&VERSION=1.1.0",
> "&REQUEST=GetFeature",
> "&BBOX=70,35,75,37",
> "&TYPENAME=aster_gdem",
> "&OUTPUTFORMAT=GML2"].join(",")
> );
>
> map.addLayers([wms, test_WFS]);
>
> map.zoomToMaxExtent();
> }
>
>
> The test_WFS layer is not displaying and I don't know how to fix it.
>
> Thank you for your help !
>
> Arthur Delorme
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] openlayers + mapserver + query parameters ??

2009-08-17 Thread bartvde
Hi,

it should work, if you pass in the necessary additonal url parameters
(check the Mapserver CGI interface for details), try something like:

new OpenLayers.Layer.MapServer( "xxx", url, {layers: 'basic', mode:
'itemquery', anotherparam: 'bla'}, {singleTile: true} );

Best regards,
Bart

> I wanted to ask if OpenLayers.Layer.MapServer supported the itemquerymap
> and itemnquerymap parameters that MapServer offers and if so, what params
> to use in the constructor?  OpenLayers 2.8, MapServer 5.4.2 Thanks in
> advance.
>
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Generate image

2009-08-05 Thread bartvde
Hi,

the print service can be used without MapFish client, it is fed by JSON.

The MapFish PrintProtocol is the communication layer you can use. But it
is not required.

Best regards,
Bart

> But in that case i would have to change all my application to MapFish,
> wouldn't I?
> Thanks,
> Albert Batiste.
>
> El mié, 05-08-2009 a las 11:16 +0200, bart...@osgis.nl escribió:
>> Try out the MapFish print service.
>>
>> Best regards,
>> Bart
>>
>> > Hi! I'm trying to generate an image of a map that has a WMS layer and
>> an
>> > OpenLayers.Layer.Vector of features that are markers. I followed the
>> > "Tile stitching" method in http://trac.openlayers.org/wiki/Printing.
>> The
>> > problem is that i can generate an image of the WMS layer, but the
>> > markers are not showing as they belong to a layer that is not tiled.
>> > Anyone has any idea of how to do this?
>> > Thanks!
>> > Albert Batiste.
>> >
>> > ___
>> > Users mailing list
>> > Users@openlayers.org
>> > http://openlayers.org/mailman/listinfo/users
>> >
>>
>>
>
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Generate image

2009-08-05 Thread bartvde
Try out the MapFish print service.

Best regards,
Bart

> Hi! I'm trying to generate an image of a map that has a WMS layer and an
> OpenLayers.Layer.Vector of features that are markers. I followed the
> "Tile stitching" method in http://trac.openlayers.org/wiki/Printing. The
> problem is that i can generate an image of the WMS layer, but the
> markers are not showing as they belong to a layer that is not tiled.
> Anyone has any idea of how to do this?
> Thanks!
> Albert Batiste.
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] boundedBy undefined with GML with defined boundedBy

2009-07-30 Thread bartvde
Hi,

IIRC OpenLayers does not read the boundedBy of the whole
FeatureCollection, only of individual features. I've added my own custom
patch but it's only for GML v3, maybe you can do something similar for
GML.v2.

--- lib/OpenLayers/Format/GML/v3.js 2009-06-12 14:12:20.0 +0200
+++ v3.js   2009-06-12 14:17:46.0 +0200
@@ -229,6 +229,15 @@
 var obj = {};
 this.readers.gml.pos.apply(this, [node, obj]);
 container.points[1] = obj.points[0];
+},
+"boundedBy": function(node, container) {
+if (!this.boundedBy) {
+var obj = {};
+this.readChildNodes(node, obj);
+if (obj.components && obj.components.length > 0) {
+this.boundedBy = obj.components[0];
+}
+}
 }
 }, OpenLayers.Format.GML.Base.prototype.readers["gml"]),
 "feature": OpenLayers.Format.GML.Base.prototype.readers["feature"],

Best regards,
Bart

>
> Hello,
>
> I'm trying to get the boundedBy of a whole feature collection (in this
> example
> there is only on feature).
>
> I follow this exemple http://trac.openlayers.org/ticket/1613
> var g =  new OpenLayers.Format.GML.v2(options);
> var features = g.read(response.responseXML || response.responseText);
> // boundedBy will contain the boundary of the whole feature collection
> // easy for zooming to the selection / collection
> console.log(g.boundedBy);
>
> The result in my log is: undefined
>
> here is my script:
> 
> function parseData(req) {
>
> var format = new OpenLayers.Format.GML.v2({
> featureType: "states",
> featureNS: "http://www.openplans.org/topp";,
> geometryName: "the_geom",
> xy: false
> });
>
>   var features = format.read(req.responseXML || req.responseText);
>   console.log(features.boundedBy);
>
> }
> function load() {
> OpenLayers.loadURL("owls1.xml", "", null, parseData);
> }
> 
>
> The beginning of my owls1.xml:
> "
> http://www.opengis.net/wfs";
> xmlns:wfs="http://www.opengis.net/wfs";
> xmlns:topp="http://www.openplans.org/topp";
> xmlns:gml="http://www.opengis.net/gml";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://www.openplans.org/topp
> http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=topp:states
> http://www.opengis.net/wfs
> http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd";>
>
>   
> http://www.opengis.net/gml/srs/epsg.xml#4326";>
>
>   http://www.opengis.net/gml";
>   decimal="." cs="," ts="">-75.791435,38.44949
>   -75.045998,39.840008
> 
>   
>   
> 
>   
> http://www.opengis.net/gml/srs/epsg.xml#4326";>
>
>   http://www.opengis.net/gml";
>   decimal="." cs="," ts="">-75.791435,38.44949
>   -75.045998,39.840008
> 
>   
> ... "
>
> Thanks for your help,
>
> Spirifer
> --
> View this message in context:
> http://n2.nabble.com/boundedBy-undefined-with-GML-with-defined-boundedBy-tp3358976p3358976.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] GetFeatureInfo in OpenLayers with no proxy?

2009-07-30 Thread bartvde
You should be able to do without the proxy in that specific case.

What I did for one website was switch the WMS version to 1.0.7 in the
GetFeatureInfo requests, so that there were no OGC mimetypes and the
response was still plain old XML (mimetype wise). I was using Mapserver
for that site though, not sure what you are using.

Best regards,
Bart

>
> Hi list,
>
> A simple question. In OL, can we do a GetFeatureInfo without setting up
> a Proxy?
>
> The http://trac.openlayers.org/wiki/GetFeatureInfo page doesn't mention
> the need of a proxy.
>
> Before you ask, everything is hosted on the same server (the data, the
> WMS server, OpenLayers and MapFish) :-)
>
>
> Neither
> http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost and
> http://trac.openlayers.org/wiki/WMSManager mention that the proxy
> requirement also applies to the GetFeatureInfo request.
>
>
> Context: we're setting up MapFish/OpenLayers on one of the highest
> traffic website of Canada (weather.gc.ca) and the technical staff are
> having difficulties setting up the Proxy. If there was a workaround not
> involving a proxy, that would be great.
>
> I just rejoined the OL list after two years of absence for this
> question, I'll move out again in the coming days, you can reach me
> directly on alexandre.ler...@ec.gc.ca - thank you
>
>
> Thank you for any feedback!
>
> Alex :)
> --
> Alexandre Leroux, M.Sc., Ing.
> Environnement Canada / Environment Canada
> Centre météorologique canadien / Canadian Meteorological Centre
> Section de la réponse aux urgences environnementales /
> Environmental Emergency Response Section
> alexandre.ler...@ec.gc.ca
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Cross-site with OpenLayers

2009-07-23 Thread bartvde
Hi,

please read:

http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost

Best regards,
Bart

> Hi all,
>
> I am trying to make geocondig using the NameFinder service. I have a url
> to
> make the petition, but if I realise this from my local domain using
> loadURL,
> send me an error because I trie to access from a diferent domain.
>
> Do you know how can I resolve this?. I read some about use iframes.
>
> Thanks.
>
> --
> # michogar
> # Analista Programador SIG
> # GNU/Linux Counter 462666
> # http://www.openstreetmap.org/user/michogar
>
> Una visión personal:
> http://michogar.blogspot.com
>
> El día a día:
> http://twitter.com/michogar
>
>
>
> Sent from Madrid, Spain
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Events on text labels

2009-07-17 Thread bartvde
Hi Tamlyn,

please always cc the list. I am unfamiliar with the contents of this patch
(I just knew of its existance), but maybe Paul or Andreas can shine a
light on this?

Best regards,
Bart

>> you might want to check out:
>> http://trac.openlayers.org/ticket/2148
>
> That looks perfect! I've applied the patch and got the
> symbolizers-fill-stroke-graphic.html example working but I don't quite
> understand how to use the labelSelect property.
>
> This is what I've got:
>
> ...
> var textLayer = new OpenLayers.Layer.Vector('text', {
>   styleMap: new OpenLayers.Style({
>   label: '${label}',
>   pointRadius: 5,
>   labelSelect: true
>   })
> });
> textLayer.addFeatures([
>   new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(0,51),
> {label: 'Testing'})
> ]);
> var control = new OpenLayers.Control.SelectFeature(textLayer, {
>   onSelect: function(e){console.log(e)}
> });
> ...
>
> which renders a point with a label. Clicking on the point logs an
> event to the (Firebug) console as expected but clicking on the label
> still does nothing. I guess I've put the labelSelect option in the
> wrong place?
>
>   T.
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Events on text labels

2009-07-17 Thread bartvde
Hi,

you might want to check out:

http://trac.openlayers.org/ticket/2148

Best regards,
Bart

>
> I'm displaying some text on a map using a vector layer and labelled points
> with radius 0. I would like to make the labels change colour on hover and
> fire an event when clicked. Control.SelectFeature doesn't seem to work for
> labels. Any suggestions?
> --
> View this message in context:
> http://n2.nabble.com/Events-on-text-labels-tp3274687p3274687.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Best way to read/parse kml

2009-07-17 Thread bartvde
Hi,

can you post a sample KML file which fails?

What is the exact error that you are getting?

Best regards,
Bart

> Hello,
>
>
>
> I'm trying to read kml file from user client side. I use:
>
>  g =  new OpenLayers.Format.KML();
>
> features = g.read(req.responseText);
>
> ...
>
>
>
> To get the collection of features, and all is ok if the kml NOT contains a
>  tag. If so, I get an error.
>
>
>
> How can I solve this?
>
>
>
> Thank's in advance
>
>
>
> Antoni Vidal
>
> Unitat d'Aplicacions SIG-WEB
> Institut Cartogràfic de Catalunya
> 
> Parc de Montjuïc, E-08038 Barcelona
> Tel. (+34) 93 567 15 00 (ext. 3228)
> www.icc.cat 
>
>
>
>
>
>
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] mr. OL, don't create the hidden layer tiles, please!

2009-07-09 Thread bartvde
Hi,

you should not use setVisibility on baselayers. Always use setBaseLayer on
the map.

Best regards,
Bart

>
>
> hi all,
> I want to emulate LayerSwitcher actions of hide/show Base layers. I want
> to
> do it from another radio form.
>
> When user clicks Background layer A, layer B is hidden, and if user zooms,
> B
> tiles should NOT be created (I see them in Firebug) to increase
> performance.
> My problem is that these tiles are created even if I use
> setVisibility(false) for layer B (it does not happens using LayerSwitcher
> buttons).
>
> I tyried to map.removeLayer(B), and Ok, B tiles are not created anymore.
> But
> later, when user chooses B (map.addLayer(B)) and zoom in/out... layer B
> bbox
> parameters are not updated and is allways the same B image.
>
> some idea?
> thanks!
>
> Pere
>
>
> --
> View this message in context:
> http://n2.nabble.com/mr.-OL%2C-don%27t-create-the-hidden-layer-tiles%2C-please%21-tp3230983p3230983.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Support for Cursors?

2009-07-01 Thread bartvde
Hi Bill,

yes it's in 2.8.

You need to add css classes depending on the displayClass + "Active"
 of a control, e.g. this is what I have:

.olControlDragPanActive {
cursor: url(lib/openlayers/theme/default/img/pan.cur) 16 16,
url(../geoservices2.2/lib/openlayers/theme/default/img/pan.cur), auto;
}
.olControlZoomBoxActive {
cursor: url(lib/openlayers/theme/default/img/zoomin.cur) 9 9,
url(../geoservices2.2/lib/openlayers/theme/default/img/zoomin.cur),
auto;
}
.zoomoutActive {
cursor: url(lib/openlayers/theme/default/img/zoomout.cur) 9 9,
url(../geoservices2.2/lib/openlayers/theme/default/img/zoomout.cur),
auto;
}
.olControlDragPanActive.olDragDown {
cursor: url(lib/openlayers/theme/default/img/pandown.cur) 16 16,
url(../geoservices2.2/lib/openlayers/theme/default/img/pandown.cur),
auto;
}
.GeoServicesControlSLDSelectActive {
cursor: default;
}
.GeoServicesControlFeatureInfoActive {
cursor: pointer;
}
.olControlMeasureActive {
cursor: crosshair;
}
.olControlDrawFeaturePolygonActive {
cursor: crosshair;
}
.olControlDrawFeaturePointActive {
cursor: crosshair;
}
.olControlDrawFeaturePathActive {
cursor: crosshair;
}
.olControlDrawFeaturePointActive {
cursor: crosshair;
}
.olControlDrawFeaturePathActive {
cursor: crosshair;
}
.olControlDrawFeaturePolygonActive {
cursor: crosshair;
}

Hope this helps.

Best regards,
Bart

> Was support for using different cursor icons (pointer, text, wait, etc.)
> built into version 2.8? I didn't see anything about cursors in the
> release notes but I thought there had been some work done on this.
>
> If not, can someone tell me the best place to set the cursor icon for
> tool buttons? Is there an "on activate" event I can listen for, or is
> there a better way to do this?
>
> Thx,
> - Bill Thoen
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


  1   2   >