Re: [OpenLayers-Users] map.setCenter fails

2010-01-29 Thread Eric Lemoine
On Friday, January 29, 2010, Dirk Tanneberger
 wrote:
>
>
>
>
>
>
>
> I forgot to say, that i use a GeoExt mappanel, in which i put the map.
> I assume the mappanel config overrides the openlayers-map-config. And
> since there is no center and zoom set in the panel config, it just
> shows the whole world. Right?
> So is there a way to keep the map-config? Because i want to dynamically
> change the map-zoom and center, when the user selects a special layer.
> But the mappanel shouldn't change.
>
> The code for the mappanel (it's part of an ext viewport):
>
>
> {
>                 id: 'mapContainer',
>                 title: 'Karte',
>                 xtype: 'gx_mappanel',
>         map: map,
>                 border: false,
>                 region: 'center'
>             }
>

Hi. This is a GeoExt question, so I'd suggest taking the question to
the GeoExt users mailing list. You have more chance to get answers
there.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] [MapFish-Users] wrong scale and offset

2010-01-21 Thread Eric Lemoine
On Wednesday, January 20, 2010, Sarah Schuessler  wrote:
> Hi list,
>
> I wanted to show that I solved one of my problems:
> offsets went away after I added 'projection: EPSG:4236' to my 
> OpenLayers.Layer.WMS.
>
> I could not manage problem about scale. Any hints about that?

Hi. This is hard (at least to me) to help you with so little
information. Please provide a live example showing the problem, or, if
that's not an option for you, share some of your code with the list.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] How to have multiple wms layers into one Openlayers.WMS layer

2010-01-18 Thread Eric Lemoine
On Monday, January 18, 2010, David Alda Fernandez de Lezea  wrote:
>
>
>
>
>
>
>
> Hello,
>
> I'm trying to have an
> Openlayers.WMS layer that should contain 2 WMS layers, served by MapServer,
> using the following code (in theory this is possible):
>
> var twms = new
> OpenLayers.Layer.WMS( "Sigpac",
>    "http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wms.map";,
>
>    { transparent: 'true', layers: 'ParcelasSigpac,
> RecintosSigpac'},{strategies: [new OpenLayers.Strategy.BBOX()],isBaseLayer:
> false, buffer:1, gutter:0,visibility: false, units: 'm', maxExtent: new
> OpenLayers.Bounds(463506.9978541628, 4702558.185239193, 603185.4988525142,
> 4811754.780732273)}
> );

As a side note, do not set strategies into WMS layers, strategies
apply to Vector layers only.


Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] ModifyFeature force selection, can't unselect

2010-01-15 Thread Eric Lemoine
On Fri, Jan 15, 2010 at 5:31 PM, Alexandre Dube  wrote:
> Hi,
>
>  I noticed something odd when using a ModifyFeature control.  If you
> force the selection of a feature with
> myModifyFeatureControl.selectControl.select(feature), you can't unselect
> the feature by clicking away from it.  When using the standard way of
> selecting a feature (I mean by clicking on it) everything works fine.
>
>  Any thoughts ?

yes: <http://trac.openlayers.org/ticket/2204> ;-)


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Opacity of GoogleLayer, get selected layer

2010-01-15 Thread Eric Lemoine
On Fri, Jan 15, 2010 at 12:05 PM, Dirk Tanneberger
 wrote:
> Hi Eric,  thanks for the fast reply.
>
> With the baseLayer-object it works. I tried to apply the method directly to
> the layer, maybe that was the problem.
> But still I have the problem, when changing the baseLayer. In my case I got
> three baseLayers and no matter which one is selected it should have a
> opacity.
> If I do it like this:
>
> var map = new OpenLayers.Map(options);
>
>     var google = new OpenLayers.Layer.Google(
>             "Google",
>             {'sphericalMercator': true}
>     );
>
>     var OSM = new OpenLayers.Layer.OSM("OSM");
>
>     var google_t = new OpenLayers.Layer.Google(
>                 "Google_Terrain",
>                 {type: G_PHYSICAL_MAP, 'sphericalMercator': true}
>     );
>
>     map.addLayers([OSM, google, google_t]);
>
>     map.baseLayer.setOpacity(0.5);
>
> the opacity is applied just to the initial baseLayer. The other layers don't
> have a opacity after being selected.
> I think, thats why I have to trigger the event, wether a layer is selected
> or not and set the opacity afterwards.
> Maybe it is possible to do so in the treepanel-object of the mapFish-API.
> Couldn't find anything appropriate so far, but I have to dig more into it.
> If you or somebody else got a hint, I would appreciate it very much.

<http://www.openlayers.org/dev/examples/spherical-mercator.html>

open the firebug console, and do:

map.layers[0].setOpacity(0.2) // -> this changes the opacity of the
current base layer
map.layers[1].setOpacity(0.2) // -> this changes the opacity of the
Google Satellite layer, although it's not the current base layer

now select the Google Satellite layer in the LayerSwitcher, its
opacity is expectedly 0.2.

Maybe I don't understand the issue you're having.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Missing for vector layer

2010-01-14 Thread Eric Lemoine
On Thu, Jan 14, 2010 at 11:31 AM, Frank Broniewski  wrote:
> Hello
>
> I have a WFS Server set up and it works so far. Using OL.Layer.WFS gives me
> my Layer as requested. However using OL.Layer.Vector with a WFS protocol
> does not draw anything. Analyzing the request done in Firebug and comparing
> it with the Layer.WFS request shows that the  part is missing
> from the response for the Layer.Vector. The Server is a UMN Mapserver ...
> Any clues why the geometry is missing from the response?
>
> My layer definitions:
>
>  // works
>    var winzer_1 = new OpenLayers.Layer.WFS (
>                'Winzer1',
> 'http://www.gis-hosting.lu/ogc/wms/strassederroemer',
>                { typename: 'winzer' },
>                { featureClass: OpenLayers.Feature.WFS }
>    );
>
> // does not work
>                var winzer_2 = new OpenLayers.Layer.Vector ('Winzer2',
>                {
>                                strategies: [new OpenLayers.Strategy.BBOX()],
>                                protocol: new OpenLayers.Protocol.WFS (
>                                        {
>                                                url: 
> 'http://www.gis-hosting.lu/ogc/service/strassederroemer',
>                                                featureType: 'winzer',
>                                                featureNS: 
> "http://mapserver.gis.umn.edu/mapserver";,
>                                                featurePrefix: "ms",
>                                                geometryName: "geom",

what if you use geometryName: "the_geom" here?

>                                                version: "1.0.0"
>                                        }
>                                )
>                }
>        );
>
>
>
>
>
> Frank Broniewski
>
> Metrico s.àr.l. ( http://www.metrico.lu )
> 36, rue des Romains
> L-5433 Niederdonven
> Luxembourg
>
> Fon: +352 26 74 94 28
> Fax: +352 26 74 94 99
>
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Opacity of GoogleLayer, get selected layer

2010-01-13 Thread Eric Lemoine
On Wed, Jan 13, 2010 at 7:05 PM, Dirk Tanneberger
 wrote:
> Hi everybody,

Hi

>
> I'm using Openlayers within MapFish. But I think the issue is specific
> to Openlayers, so I post it here. Hope somebody got a clue.
>
> What I'm trying to do is: applying a opacity to a Google-Layer with the
> "setOpacity"-method.
>
> Here is the code I'm using:
>
>    var options = {
>            projection: new OpenLayers.Projection("EPSG:900913"),
>            displayProjection: new OpenLayers.Projection("EPSG:4326"),
>            units: "m",
>            numZoomLevels: 18,
>            maxResolution: 156543.0339,
>            maxExtent: new OpenLayers.Bounds(810690, 6027000,
>                                                883240, 6118400),
>            controls: []
>    };
>
>    var map = new OpenLayers.Map(options);
>
>    var google = new OpenLayers.Layer.Google(
>            "Google",
>            {'sphericalMercator': true}
>    );
>
>    var OSM = new OpenLayers.Layer.OSM("OSM");
>
>    var google_t = new OpenLayers.Layer.Google(
>                "Google_Terrain",
>                {type: G_PHYSICAL_MAP, 'sphericalMercator': true}
>    );
>
>    google.setOpacity(0.5);
>
>
>    map.addLayers([google, OSM, google_t]);
>
>
>
>
> It works fine for th OSM-layer (if specified), but either one of the
> Google-layers won't take the opacity. They just show up in full bright.
> Has anybody experienced similar?

No. I just opened
<http://openlayers.org/dev/examples/spherical-mercator.html> and
entered map.baseLayer.setOpacity(0.2) in the FireBug console and the
Google layer's opacity did change. Do you have a live example showing
the problem?

> Another question is: How can I obtain the selected Layer from the map?

map.baseLayer may be what you're looking for.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Select geojson feature from hyperlink

2010-01-13 Thread Eric Lemoine
On Thursday, January 14, 2010, Jtrsmith  wrote:
>
> I have a map that is displaying a set of polygons from geojson, when selected
> these polygons display a popup which contains attributes from the geojson.
>
> Is it possible to have a link on the page (not on the map) that will trigger
> the selectfeature event?
> I would like to have a list of the features to the right of my map and when
> selected the map will find the feature, select it, and open the popup. Is
> this possible?

yes, the ids of the list elements would match the fids of the
features. So when an element is clicked you can look up the
corresponding feature and select it.

> Also wondering if it is possible to select a feature by using a search field
> to search a custom attribute from geojson?

OpenLayers reads a GeoJSON FeatureCollection document into an array of
feature (OpenLayers.Feature.Vector) objects, with each feature object
having an "attributes" property containing the properties of the
feature. So once you have this array of features you can do searches.
If you have features in a vector layer the array of features is
accessible at layer.features.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] context in Rule

2010-01-11 Thread Eric Lemoine
On Mon, Jan 11, 2010 at 8:28 PM, Yves Jacolin (free)  wrote:
> Hi,
>
> I would llike to use a context in Rule object. the code below doesn't seems to
> work.
>
> How can I debug this? Do you see something wrong?
>
> var context = {
>   getEvolution: function(feature) {
>     var region = parseInt(((feature.attributes['NBR2009'] -
> feature.attributes['NBR2008']) / feature.attributes['NBR2009'])*100);
>    return region;
>  }
> };
>
> var ruleHigh = new OpenLayers.Rule(
> {
>  context: context,
>  filter: new OpenLayers.Filter.Comparison(
>  {
>      property: '${getEvolution}',
>      type: OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO,
>      value: 0,
>  }),
>  symbolizer: {fillColor: "red", fillOpacity: 0.7, strokeColor: "black"}
> });

Looking at your code I feel you want to style each feature based on
the result of some operation on the feature attributes. If so I'd
recommend looking at the styles-context.html example, more
specifically at the way layer2 is styled in this example.

Cheers,



-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Button Active CSS Styling

2010-01-07 Thread Eric Lemoine
On Thursday, January 7, 2010, Henry Rotzoll  wrote:
>
> Thanks Kris!
>
> "btn.activate();" did the trick!

Your control is a button as opposed to a toggle, and it's not active
by default its DOM element gets "Inactive" class. When you activate it
gets the "Active" class, so it's rendering changes. I don't understand
why you need two classes and two ways to render the button.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Incomplete msGMLOutput causes infinite loop

2010-01-06 Thread Eric Lemoine
On Wednesday, January 6, 2010, Yves Moisan  wrote:
> Hi All,
>
> I think I hit a bug in Format/WMSGetFeatureInfo.js.  I have a case where
> a layer returns an incomplete response like :
>
>           xmlns:gml="http://www.opengis.net/gml";
>          xmlns:xlink="http://www.w3.org/1999/xlink";
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>         
>
> This raises the following error in Firebug :
>
> node.hasChildNodes is not a function
>
> if (node && node.hasChildNodes()) {\r\nWMSGetFe...reInfo.js (line 187)
>
> Googling around, I have found one mention of a similar truncated
> MapServer response [1] but to which there is no solution (at least in
> the thread I looked at).  I also found a related openlayers ticket [2],
> but for WFS.
>
> I know I need to do something about the faulty layer, but in the
> meantime shouldn't there be an exception raised there ?  Pointers
> appreciated.

Yes, I think the format should behave gracefully on such cases. IIRC
with the patch I committed for WFS the format doesn't throw an
exception or ouput an error message, it just silently returns no
features. But I agree it may make sense to warn the caller by raising
an exception or something.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Modify features with user specified coordinates

2010-01-06 Thread Eric Lemoine
On Wednesday, January 6, 2010, Yves Moisan  wrote:
>> >
>> > In order to avoid coming up with some half-baked hack, I wonder if
>> > people on this list see this feature as a "core" OpenLayers feature.
>>
>> Personally speaking: No.
>
> A "non-core-but-useful" feature then ?  At any rate, who would want such
> a feature in OL and where should it be in the code ?  I want to get
> going with this.

Hi Yves. I'd personally implement this in the application-specific
code, with possibly new APIs in the modify feature control if relying
on the methods I mentioned in my previous email doesn't work out.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Using only one set of modify feature controls for different layers?

2010-01-06 Thread Eric Lemoine
On Wednesday, January 6, 2010, cgp  wrote:
>
>
> I think that would work, but it might make my code too long and
> unmanageable. I'd also like to avoid hard-coding as much as possible. In my
> post, I only used a small example of 3 layers, but my actual application has
> around 50 layers in it, so it's going to be huge if I make a set of controls
> for each of them

I'm not suggesting that. I'm suggesting creating a function that
receives a layer, destroys the existing controls (if any), and creates
new ones  (configured with the passed layer). It's only 4 or 5
controls to destroy and create on each call to this function.

Alternatively, you can add a setLayer method to the modify feature
control. I'm not sure but the select feature control may have a
setLayer method already, that would probably help you.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Using only one set of modify feature controls for different layers?

2010-01-05 Thread Eric Lemoine
> I also made my own layer switcher that only allows modification of one layer
> at a time. When I toggle between the layers, I assign the layer to each of
> the modify feature controls:
>
>             for(var modify_key in modifyControls) {
>                 var control = modifyControls[modify_key];
>                 control.layer = layer;
>             }

I think you can't dynamically change a modify feature control's layer.
For example, the select feature control the modify feature control
uses internally would also need to be reconfigured. So I'd recommend
creating new controls when switching from one layer to another.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] changing the state of a selected feature

2010-01-05 Thread Eric Lemoine
On Tue, Jan 5, 2010 at 11:57 AM, Marco Scheuble  wrote:
> Hi list,
>
> after selecting a feature and editing its attributes, I want to save the
> changes.
> Unfortunately the state of the selected feature isn't set, so changes
> would not be saved.
> Trying to set the state manually with: feature.toState() won't work, too.
>
> I'm doing it like this:
> point.events.on({
>    "featureselected": function(e) {
>     showAttributes(e.feature);
>   },
>   "featureunselected": function(e) {
>     hideAttributes(e.feature);
>   }
> });
>
> function showAttributes(feature){
>     document.getElementById("label").value = feature.attributes.label;
> }
>
> function hideAttributes(feature){
>     feature.attributes.label = document.getElementById("label").value;
>     feature.toState("Update");
>     alert(feature.state);
> }
>
> alert(feature.state) -> null

to change a feature's state do feature.state = OpenLayers.State.INSERT
(or UPDATE or DELETE). If you use the modify feature control it'll
take care of modifying the feature's state.

Hope this helps,


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] StyleMap, Style and Rules not working

2009-12-27 Thread Eric Lemoine
On Mon, Dec 21, 2009 at 4:36 PM, Casper Børgesen  wrote:
> Looking at various examples of how to use styles in OpenLayers, we have
> built the following:
>
> var Layer_AddressWebService_1 = new OpenLayers.Layer.Vector(
>     "AddressWebService_1",
>     {
>     styleMap: new OpenLayers.StyleMap(
>     {
>     "default": new OpenLayers.Style(
>     {
>     rules:
>     [
>     new OpenLayers.Rule(
>     {
>     symbolizer:
>     {
>     "Point":
>     {
>     pointRadius: 4,
>     graphicName: 'square',
>     fillColor: 'blue',
>     fillOpacity: 1,
>     strokeWidth: 1,
>     strokeOpacity: 1,
>     strokeColor: '#FF'
>     }
>     }
>     })
>     ]
>     })
>     })
>     }, {
>     displayInLayerSwitcher: false,
>     isBaseLayer: false
>     }
> );
>
> We think this should resemble and hopefully be functionally identical to:
>
> var awsSymbolizer = {
>     "Point": {
>     pointRadius: 4,
>     graphicName: "square",
>     fillColor: "blue",
> fillOpacity: 1,
>     strokeWidth: 1,
>     strokeOpacity: 1,
>     strokeColor: "#FF"
>      }
> };
>
> var awsStyle = new OpenLayers.Style();
> awsStyle.addRules([new OpenLayers.Rule({symbolizer: awsSymbolizer})]);
> var awsStyleMap = new OpenLayers.StyleMap({"default": awsStyle});
> var Layer_AddressWebService_1 = new
> OpenLayers.Layer.Vector("AddressWebService_1",
> {
>     styleMap: awsStyleMap
> }, {
>     displayInLayerSwitcher: false,
>     isBaseLayer: false
> });
> But it is not. When using the latter, points are visualised fine, but using
> the first part, results in nothing. The problem lies around the rules. Can
> anyone tell me what the major difference is?

try

new OpenLayers.Style(null, {rules: [ /*  */ ]});
  

cheers,




-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Modify features with user specified coordinates

2009-12-27 Thread Eric Lemoine
On Monday, December 21, 2009, Yves Moisan  wrote:
> Hi All,

Hi Yves

> I was asked to provide users with text boxes so that they can enter
> coordinates they want a vertex or point moved to in RESHAPE mode.  I
> thought of a "MANUAL_RESHAPE" option, but looking at ModifyFeature.js
> shows that all values on the byte are taken :
>
> OpenLayers.Control.ModifyFeature.RESHAPE = 1 (RESIZE = 2, ROTATE = 4 and
> DRAG = 8) plus all combinations of mode.

You could use 16, as long as it's a power of 2.

>
> Has anyone implemented such a functionality in OL ?  I could modify the
> behaviour of RESHAPE so that it pops text boxes upon clicking on a point
> or vertex, but I would rather have it as another editing option mode.
> Ideally, people would be allowed to toggle "default" RESHAPE (that is
> drag points or vertices with the mouse) and manual reshape.  Ideas ?


If I had to do that I'd try to manually call the modify feature
control's dragStart, dragVertex and dragComplete methods.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Duplicated Google Maps copyright controls

2009-12-27 Thread Eric Lemoine
On Sat, Dec 26, 2009 at 11:15 PM, Alexandre Saunier
 wrote:
> Hey Eric,
> thanks for replying!
>
> Yes I use OL trunk and so does the example that illustrates the problem:
> http://openlayers.org/dev/examples/spherical-mercator.html
>
> I now realize that my previous mail subject was confusing. The Google
> Maps "attribution" control is not duplicated because of two layers
> displayed at the same time. The problem is rather that the GM
> "attribution" link/text of the previously selected base layer is still
> displayed (in some cases) even when another base layer has been
> selected in the meantime.
>
> In the case study provided in my first message, you can see that two
> GM "attributions" are stacked when switching from "Google streets" to
> "Google Satellite" or "Google Hybrid" for the first time. It also
> occurs when switching to some other base layer like VE or OSM. In fact
> it seems that the first GM base layer attribution control is not
> cleared (deactivated?) when the base layer changes.

Hi Alexandre.

Your initial post was clear, I'd just misread it. I think you found a
bug. The problem is, I think, unrelated to Control.Attribution, as the
"terms of use" and "powered by" links/logos are handled in a specific
way for Google layers. So I guess you create a ticket; if you attach a
patch I'll review it.

Thanks,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Filters doesn't work with features attributes

2009-12-27 Thread Eric Lemoine
On Wednesday, December 23, 2009, Jimmy Aumard  wrote:
> Hi,
>
> I have problems with filters. I try to create filter dynamically to select 
> many feature on my layer.
>
> Some test code :
>
> var layer=map.getLayersBy('name','franch')[0];
> var filter= new OpenLayers.Filter.Comparison({
>     type: OpenLayers.Filter.Comparison.LIKE,
>     property: "Nom",
>     value: "test"
>     });
> for(i=0;i     var feature=layer.features[i];
>     alert(feature.attributes.Nom);
>     if(filter.evaluate(feature)){
>     alert('ee');
> }
> }
>
> I have features with an attribute "Nom" = "test" but the filter return alway 
> false.
>
> What I'm doing wrong?

Have you tried passing feature.attributes to the evaluate function?

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Format GML 3 issue?

2009-12-27 Thread Eric Lemoine
On Wednesday, December 23, 2009, Julien Jeudy  wrote:
> Dear all,
>
> I have a doubt on a GML 3 OpenLayers format issue (from a WFS 1.1.0).
>
> In GML there are two ways to list polygons points:
>
> 1. a unique posList element: the following geom is correctly transform from
> GML3 to OpenLayers geometry
> -
> 8427711.443672495 4658480.583807316 -8428116.646618983 4671596.358484082
> -8429661.427192722 4697373.995504196 -8432776.70314257
> .
>
> 2. a list of pos elements: But this geom is not correctly transform
>  srsName="EPSG:900913"> arRing srsName="EPSG:900913">
>                 3944245.0984 3978948.409156078
>                 3944282.898407 3978974.7107042107
> .
>
> I think it's due to this part of code (from trunk -
> OpenLayers.Format.GML.v3.js). Because on each iteration of gml pos the
> points array is erased.
>                 "pos": function(node, obj) {
>                 var str = this.getChildValue(node).replace(
>                     this.regExes.trimSpace, ""
>                 );
>                 var coords = str.split(this.regExes.splitSpace);
>                 var point;
>                 if(this.xy) {
>                     point = new OpenLayers.Geometry.Point(
>                         coords[0], coords[1], coords[2]
>                     );
>                 } else {
>                     point = new OpenLayers.Geometry.Point(
>                         coords[1], coords[0], coords[2]
>                     );
>                 }
>                 obj.points = [point];
>             },
>
> Does anyone know whether the GML is not conform or if it's possible to
> propose a patch?
> If it's not a GML conformity issue, I think that the following patch can
> solve the problem but i'm not sure it's the best way:
>         "pos": function(node, obj) {
>                 ...
>                 if(obj.points) {
>                         obj.points.push(point);
>             } else {
>                         obj.points = [point];
>             }
>         }
>
> But i'm not sure it's the best way to do this.

I'm not familiar enough with GML to answer your question, sorry. I'd
just recommend that you ask the question again on dev@ if you don't
get answers here. Also, if you think this is a bug feel free to create
a ticket, and possibly attach a patch. See
<http://trac.openlayers.org/wiki/HowToContribute>. Thanks,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Add new Parameter to options

2009-12-26 Thread Eric Lemoine
On Tuesday, December 22, 2009, Moataz Elmasry
 wrote:
> Hello List
>
> I've created a custom toolbar as follows:
>
> OpenLayers.Control.CustomNavToolbar =
> OpenLayers.Class(OpenLayers.Control.Panel, {
>      Map : null,
>      initialize : function(options) {console.log(Map);}
> });
>
> Now I want to add the parameter Map to to the constructor:
> var nav = OpenLayers.Control.CustomNavToolbar({Map:map})
>
> On the console.log(Map) I get that object Map is not defined. When I
> call on the other hand console.log(options.Map) I get the actual object.
>
> How can I define the parameter so that I can directly use "Map" instead
> of options.Map?

Hi. I don't know if that answers your question but you can use
OpenLayers.Util.extend in the "initialize" method to set the options
passed to the constructor in the instance:

initialize: function(options) {
OpenLayers.Util.extend(this, options);
}

You can then use this.Map from any method of the class.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
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-26 Thread Eric Lemoine
On Thursday, December 24, 2009, afrozk  wrote:
>
> Hi,
>     It works fine now when I removed the mode=map option.
>
> I did not remove the  layers option. Please tell me where else do I specify
> the
> layers option if it is removed from there, just to know it .

I think the "layers" param is fine.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] problem with map.setCenter and zoom

2009-12-26 Thread Eric Lemoine
On Friday, December 25, 2009, ibrahimsaricicek
 wrote:
>
> Hi all,,
>
> I have a similar problem;
>
> map.setCenter(userExtentCenterLonLat,userExtentZoom, false, true);
>
> On Google It shows the whole world, but it should be a placemark in Turkey.
> A zoom in and out solves the problem.
>
> But if the basemap is wms (Mapserver) there is no problem, sets the center
> where we want...
> Any commend??

Hi. Do you also use GeoExt.MapPanel or mapfish.widgets.MapComponent?
If not this is a different issue. I'd recommend you provide a small
example showing your problem.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Duplicated Google Maps copyright controls

2009-12-26 Thread Eric Lemoine
On Friday, December 25, 2009, Alexandre Saunier
 wrote:
> Hello all,
>
> I don't know if the topic has already been discussed but I notice a
> strange behaviour with some OL maps using Google layers: for instance
> when viewing http://openlayers.org/dev/examples/spherical-mercator.html
> with Firefox and switching the base layer to "Google satellite" (or
> hybrid), one may notice that the Google copyright in the bottom left
> corner is duplicated  (pan the map a little bit to have a non-white
> background). Then it's ok when switching to an other baselayer.
>
> I observe the same issue in one of my OL applications. Is there a way
> to avoid it?
>
> Thank you for your help (and happy holidays),

Hi Alex. Do you OL trunk in your app? Patches addressing duplicate
attributions were committed recently, see #2266 and #2300.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] my road styleMap not working

2009-12-12 Thread Eric Lemoine
On Saturday, December 12, 2009, Haftish 21  wrote:
>
>
> Lately,
>
> rType = {
>         'Functioning': { strokeColor:"#0aa989", strokeWidth: 7 },
>         'Schematic road': { strokeColor:"#ff", strokeWidth: 4 },
>         'Compiled road connector': { strokeColor:"#f4a427", strokeWidth: 3 }
>         };
>
> Is working even without first declaring the variable rType. I'm really 
> interested in the abbreviated version of the road types as in the non-working 
> code above.

the keys in your rType object must correspond to the values found in
the "rdlnstattx" attribute of the features
(feature.attributes.rdlnstattx).

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Understanding events

2009-12-10 Thread Eric Lemoine
On Thu, Dec 10, 2009 at 2:55 PM, Yves Moisan  wrote:
> Are those equivalent :
>
> layer.events.on({
>    scope: layer,
>    loadend: onLoadend
> });
>
> and
>
> layers.events.register("loadend", layer, onLoadend)

Yes Mr.


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Understanding events

2009-12-09 Thread Eric Lemoine
On Wed, Dec 9, 2009 at 4:13 PM, Yves Moisan  wrote:
>
>> Wrap your function in anonymous instead.
>
>> layers[0].events.register("loadend", layers[0], function(evt){
>>   //do what you have to do here...
>>    selectFeature(layers[0],oFeatures[0].fid));
>> });
>>
>
> Well, the use case is a bit more complicated.  I calculate initial
> bounds for a feature then select that feature.  Then if my feature array
> has more than one element I iterate through it and then features don't
> get selected :
>
> if(oFeatures && oFeatures.length > 0)
>
> {
>     var bounds = oFeatures[0].geometry.getBounds();
>        layers[0].events.register("loadend", layers[0], function(){
>        selectFeature(layers[0],oFeatures[0].fid);                             
>                                                 });
>
>        for(var i = 1; i                      {
>                        bounds.extend(oFeatures[i].geometry.getBounds());
>
>                        layers[0].events.register("loadend", layers[0], 
> function(){
>                           selectFeature(layers[0],oFeatures[i].fid);});
>
>
>
> I guess the event is triggered only once so iterating makes no sense ?
> I thought it was the case so I just called the function directly in the
> for like
>
> selectFeature(layers[0],oFeatures[i].fid);
>
> but that didn't work either probably because the code gets executed
> before the loadend was fired.  Do I have to set up an explicit delay
> here or somehow bubble the event ?

I'm not sure I get it. Why don't you do the whole thing once the layer
is loaded?

layer.events.on({
scope: layer,
loadend: function() {
// "this" references the layer
var features = this.features;
// do what you need with the features
// ...
}
});

the loadend listener need not be anonymous, you can also go with:

function onLoadend() {
    var features = this.features;
}
layer.events.on({
scope: layer,
loadend: onLoadend // you don't call the function here but just
provide a reference to it
});

Hope this makes sense,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] registering featuremodified

2009-12-09 Thread Eric Lemoine
On Wed, Dec 9, 2009 at 9:15 AM, Adorian Ardelean  wrote:
> it worked! thanks!

for the record, here's what the API doc says:

"Listeners will receive an object with a feature property referencing
the selected feature."

Cheers,
-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] registering featuremodified

2009-12-08 Thread Eric Lemoine
On Wed, Dec 9, 2009 at 8:20 AM, Adorian Ardelean  wrote:
> Hi,
>
> I am trying to register a "featuremodified" event to a vector layers
> containing a feature built from a GeoJSON file.
>
> For registering event, I have used both methods below:
>
> trails.events.register('featuremodified', '',serialize);
> or
> trails.events.on({featuremodified:
> function(feature){alert(feature.id)}});
>
>
> serialize = function (feature)
> {
>    alert(feature.id);
> }
>
> In both cases I receive an "undefined" in message box.
>
> Could somebody guide me on how this event should be registered so that I
> can get access to feature data?

try:

var serialize = function(e) {
alert(e.feature.id);
};

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] event model and event propagation

2009-12-08 Thread Eric Lemoine
On Tue, Dec 8, 2009 at 9:29 AM, David Potts  wrote:
>
>
> I have a map image with a WMSGetFeatureInfo control and
>
> OpenLayers. Marker.Box object with a click handle registered on it.
>
> The WMSGetFeature control is added first, the box object does not inserect
> any feature on the WMS layer.
>
> when ever I click on the map, the wms control is in invoked, the click
> handler on the box feature never gets invoked.
>
> Q.  Is this the expected behaivour?
>
> I had expected that events would be routed through to the click handler on
> the box object instead the wms control seems to "eat all" the events.

Hi. Have you made sure that clicks on the box do work when the
WMSGetFeatureInfo control isn't activated?

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] maxFeatures and BBOX..

2009-12-07 Thread Eric Lemoine
On Mon, Dec 7, 2009 at 3:37 PM, JuKiM  wrote:
> Hi,
> I'm trying to create  a vector layer from a WFS, and limiting to 150
> features, in this way:
> wfs = new OpenLayers.Layer.Vector("WFS", {
>     strategies: [new OpenLayers.Strategy.BBOX()],
>         protocol: new OpenLayers.Protocol.WFS({
>             url: "http://localhost:8080/geoserver/wfs";,
>             featureType: "test_points",
>             featureNS: "http://www.mapmap.org/g4wd";,
>             extractAttributes: false,
>             maxFeatures: "150"
>         }),
>         styleMap: myStyles
>     });
> And the 150 features are displayed ok. The best way to refresh the features
> when zooming or moving, is to catch each event and call to the refresh
> method of the vector layer? Or is there any way to make an automatic

the BBOX strategy should handle this for you. Use resFactor:1 in the
BBOX strategy options if you want the strategy to fetch new features
also when zooming in.

Hope this helps,
-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] on window size change - zoom the map instead of enlarging the extent

2009-12-02 Thread Eric Lemoine
On Wed, Dec 2, 2009 at 11:10 AM, Adrian Popa
 wrote:
> Hello everyone,
>
> I would like to change the behavior of OpenLayers like this:
>
> Now, when the user resizes the browser window, the map  remains centered
> on the previous view, the zoom remains the same, and the edges of the
> map are downloaded.
>
> I would like on window resize, to keep the current view in the visible
> part on the map and just do a zoom to extent (for my current extent).
> The change should thus be in the zoom used.
>
> I want to know if this is possible (and if I can change a
> on-window-resize handler action), or if I need to build some ugly hack
> around it. A pointer to the relevant documentation or an example is
> highly appreciated.

You may want to try to override the Map's updateSize method. You can
do that either by overriding the updateSize method in your map
instance:

var map = new OpenLayers.Map("div", {
updateSize: function() {
}
});

or by creating a custom Map class:

CustomMap = OpenLayers.Class(OpenLayers.Map, {
updateSize: function() {
}
});

I'd recommend you look at the Map.resizeMap method to understand what
it does first.

Cheers,
-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Broken image for no tile, on Chrome

2009-12-01 Thread Eric Lemoine
On Tuesday, December 1, 2009, Frederic Junod
 wrote:
> Hi all,
>
> I've created a small test case for this issue:
> http://dev.camptocamp.com/~fredj/image-load-error.html
> The WMS layer always returns a 404 error so all the tiles are broken;
> they all should have a green background.
>
> With Chrome (on linux), some of the tiles do not have the
> olImageLoadError css class.

Hi fredj

Is there a ticket for that issue? If not we should create one and mark
it for 2.9.

Cheers,


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] problems settings up proxy

2009-11-29 Thread Eric Lemoine
On Sunday, November 29, 2009, Bryan Hempen  wrote:
> hi there!
>
> i am trying to set up a proxy as described on
> http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost to
> avoid the security exception "Access to restricted URI denied" code:
> "1012".
>
> it started occuring yesterday without me making any changes on the code
> (at least i wasn't aware of).
>
> ever since then i did not get to fix it, so i hope you guys can help me.
>
> i put the proxy.cgi in my private script folder on the server located at
> /home/bhempen/public_html/cgi-bin (i didn't modify it) and added
>
> OpenLayers.ProxyHost = "cgi-bin/proxy.cgi?url=";
>
> to the code of my index.html. the URL should be right relativ to the
> index.html. anyways, changing it to
>
> OpenLayers.ProxyHost = "/~bhempen/cgi-bin/proxy.cgi?url=";
>
> does not help either. i get a 500 Internal Server Error and didn't find
> anything useful at google.
>
> take a look at the code yourself:
>
> http://igf-project.igf.uos.de/~bhempen/
>
> any ideas?

are you sure your cgi-bin directory is effectively declared as a CGI
directory in the Apache config?

cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] mapExtents for Layer vs mapExtents for Map

2009-11-28 Thread Eric Lemoine
On Mon, Nov 23, 2009 at 9:27 AM, srweal  wrote:
>
> I am seeing behavior different to what you describe.  I have a WMS layer
> providing data over Australia (using tilecache.py) and if I set it up to
> have no BBOX restriction set on the TileCache, then transparent tiles are
> requested and provided when my map viewport is showing other parts of the
> world (e.g. zoomed in on Africa).
>
> However, if I set a BBOX restriction on my TileCache and also set the same
> as a maxExtent on the WMS layer, then I get pink tiles displayed over Africa
> when I zoom in there, while my actual data tiles display over Australia when
> it is in the viewport.  I was expecting to have no tiles requested when
> zoomed on Africa with the maxExtent of my WMS set to Australia.  Something
> must be wrong.
>
> I've checked my settings a few times now, but being fairly new to OpenLayers
> I wonder what I might be missing.  Can anyone else test this and confirm
> that this does/doesn't work?

This is hard to tell (at least for me). It'd be great if you could
come up with a simple example showing the problem. Thanks,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] layerswitcher maximised event?

2009-11-28 Thread Eric Lemoine
On Thursday, November 26, 2009, Derek Watling  wrote:
>
> Is there an event that triggers when the layerswitcher is maximised? If so
> how do I hook into it?

there's not. But you can inherit from LayerSwitcher and overload the
maximizeControl method:

CustomLayerSwitcher = OpenLayers.Class(OpenLayers.Control.LayerSwitcher, {
maximizeControl: function() {
OpenLayers.Control.LayerSwitcher.prototype.maximizeControl.apply(this,
arguments);
// do what you need here

}
});

note, though, that maximizeControl isn't part of the public API, so
this code could break with future OpenLayers releases.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WFS + Filter

2009-11-28 Thread Eric Lemoine
On Thursday, November 26, 2009, Ivan Grcic  wrote:
> Actually, im not sure if filter should go to protocol. It should go in
> layer options like you put it. Then strategy should take that filter
> and apply it to the protocol when data is requested.
>
> But I dont see any filter options inside Fixed strategy, only in BBOX
> strategy. New ticket?
>
> So setting filter manually inside protocol will maybe do the trick.

FWIW, there now (trunk) is a defaultFilter option in OpenLayers.Protocol.


Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] OpenLayers.Format.JSON not working

2009-11-28 Thread Eric Lemoine
On Thursday, November 26, 2009, Mak Kolybabi  wrote:
> I've wasted long enough on this, it's time to ask for help...
>
> I'm making a simple Ajax request with OpenLayers.loadURL, which works 
> perfectly.
> If I process the return data with:
>
>     var info = eval("(" + response.responseText + ")");
>
> a proper object is created in both IE and Firefox. But if I try to use:
>
>     var parser = new OpenLayers.Format.JSON();
>     var info = parser.read(response.responseText);
>
> nothing happens. In fact, if I try:
>
>     var parser = new OpenLayers.Format.JSON();
>     var info = parser.read("{'a': 1}");


This isn't valid JSON. Use <http://www.JSONLint.com/>. Try {"a": 1}.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WFS post and proxy?

2009-11-28 Thread Eric Lemoine
On Thursday, November 26, 2009, JuKiM  wrote:
> Hi,
> I think that I'm missplacing something with the POST method...When I load an 
> WMS, I needed to put the OpenLayers.ProxyHost = "test.aspx?url="; in order to 
> get the WMS data from geoserver when the GET method is done...
> But, what about making a POST?
> I'm trying to understant how can I send the POST to the geoserver going 
> through the test.aspx proxy?

you need your proxy to support POST (Sorry, I don't about your test.aspx proxy)

cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Drawing WFS (with vector)

2009-11-28 Thread Eric Lemoine
On Friday, November 27, 2009, JuKiM  wrote:
> Hi list,
> I suppose for what I'm reading that "the best practices" way to draw a WFS 
> layer, is using the Vector Layer defining a WFS protocol..
> My question is about that... How is drawn a WFS Layer or a WFS Vector? I 
> mean, with WMS, the client gets images and no more processing is needed.. But 
> how (where?) Openlayer.js read/parse the gml information that serves WFS?

The vector layer is configured with a WFS protocol, which is
configured with a WFS format, which relies on a GML format for parsing
geometries received in GetFeature responses. Features resulting from
parsing GetFeature responses are added to the vector layer, and then
rendered in the page using SVG, VML or Canvas.


> If I want to draw some points programatically, what is the best way?

Just create OpenLayers.Feature.Vector objects and add them to an
OpenLayers.Layer.Vector layer. I'd recommend searching the OpenLayers
examples.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] loadURL function

2009-11-25 Thread Eric Lemoine
On Wed, Nov 25, 2009 at 11:03 AM, David Potts  wrote:
>
> Quick question about the location of the loadURL function
>
> The documentation lists this function as being part of the Ajax package,
> see
> http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Ajax-js.html#loadURL
>
> But if you look at the source code OpenLayers-2.8/lib/OpenLayers/Ajax.js
> at line 71, the function is declared to be part of the OpenLayers
> namespace ie
>
> OpenLayers.loadURL = function(uri, params, caller,
>                                  onComplete, onFailure) {
>
> Is this an code error or an error in the docmentation?

<http://trac.openlayers.org/changeset/9843>

Thanks,


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] loadURL function

2009-11-25 Thread Eric Lemoine
On Wed, Nov 25, 2009 at 11:03 AM, David Potts  wrote:
>
> Quick question about the location of the loadURL function
>
> The documentation lists this function as being part of the Ajax package,
> see
> http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Ajax-js.html#loadURL
>
> But if you look at the source code OpenLayers-2.8/lib/OpenLayers/Ajax.js
> at line 71, the function is declared to be part of the OpenLayers
> namespace ie
>
> OpenLayers.loadURL = function(uri, params, caller,
>                                  onComplete, onFailure) {
>

loadURL is in the OpenLayers namespace. Although the section is named
"loadURL" in the documentation, the signature of the function provided
at the beginning of the section makes it clear that it's part of the
OpenLayers namespace.


Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] mapExtents for Layer vs mapExtents for Map

2009-11-22 Thread Eric Lemoine
On Mon, Nov 23, 2009 at 8:28 AM, Andreas Hocevar  wrote:
> Eric Lemoine wrote:
>>
>> On Monday, November 23, 2009, Andreas Hocevar 
>> wrote:
>>
>>>
>>> Hi,
>>>
>>> srweal wrote:
>>>
>>>>
>>>> Actually, to simplify this question a bit, can someone please just
>>>> explain
>>>> how the setting for mapExtents on a Layer, as opposed to setting
>>>> mapExtents
>>>> on the Map differ?
>>>>
>>>>
>>>
>>> The maxExtent of the active base layer takes precedence over the
>>> maxExtent of the map. For overlays, maxExtent is only used to determine
>>> if the layer is to be displayed or not, i.e. if it would be visible in
>>> the current viewport.
>>>
>>
>> are you sure about that Andreas? I thought only minResolution and
>> maxResolution were looked at to determine whether an overlay is to be
>> displayed. I may be wrong, and would appreciate being corrected and
>> pointed to the relevant code in that case. Thanks,
>>
>
> You are right, calculateInRange (which turns layer visibility on and off)
> only uses min/maxResolution. OpenLayers.Tile::draw determines tiles to be
> loaded by checking interectsBounds of the viewport with the layers
> maxExtent.

cool, never realized that. Thanks,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] mapExtents for Layer vs mapExtents for Map

2009-11-22 Thread Eric Lemoine
On Monday, November 23, 2009, Andreas Hocevar  wrote:
> Hi,
>
> srweal wrote:
>> Actually, to simplify this question a bit, can someone please just explain
>> how the setting for mapExtents on a Layer, as opposed to setting mapExtents
>> on the Map differ?
>>
>
> The maxExtent of the active base layer takes precedence over the
> maxExtent of the map. For overlays, maxExtent is only used to determine
> if the layer is to be displayed or not, i.e. if it would be visible in
> the current viewport.

are you sure about that Andreas? I thought only minResolution and
maxResolution were looked at to determine whether an overlay is to be
displayed. I may be wrong, and would appreciate being corrected and
pointed to the relevant code in that case. Thanks,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] First try with html5 canvas for layers

2009-11-22 Thread Eric Lemoine
On Thursday, November 19, 2009, Kris Geusebroek  wrote:
> Hi Eric,

Hi Kris. Thanks for response.

>
> Indeed it's cool, thanks.
> My goal was to write an application with open source technologies to
> track cars driving around.
> I wrote a prototype with geoserver and openlayers and this was
> succesfull. The big problem was the memory consumption (especially in
> IE) because of the large amount of DOM manipulation that is done when
> panning and zooming

do you manage to actually lower memory consumption with your
Canvas-based tiles? IIRC an image tile is two DOM elements (a div and
an img). How many elements is a Canvas tile? One?

> and drawing vector's (the cars, with fills, stroke,
> label etc.)
>
> Since using a plugin is out of the question here I began investigating
> the html5 canvas.
> I know it's not supported in IE, but for me that was a good thing
> because it gave me the opportunity to have the client choose a different
> browser then IE.
>
> My plans for the future of the app is to also use workers and the
> browser database (to be able to store historical responses clientside to
> draw a route the car has followed for the last 10 minutes or so)

This could be written as a OpenLayers.Protocol. Chris Schmidt started
an HTML5 Protocol a while back if I recall correctly. You may want to
check this with him.

Thanks,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] mapExtents for Layer vs mapExtents for Map

2009-11-22 Thread Eric Lemoine
On Friday, November 20, 2009, srweal  wrote:
>
> Hi there,
>
> I'm a new OpenLayers user and am struggling with the use of the mapExtent
> setting.  I have a WMS that renders imagery for me, which is being accessed
> through a TileCache.  The imagery only covers part of my entire map, so I
> want to make sure OpenLayers is not requesting image tiles for areas beyond
> the extent of the layer.
>
> However, when I set a mapExtent on my WMS layer to something like
> (135,-45,180,0), it is still displaying 'pink tiles' over top of the base
> layer of the map (which has mapExtent -something like 180,-90,180,90).  This
> seems wrong, as the WMS layer may be set up to only return tiles inside the
> BBOX (135,-45,180,0).  Am I missing something here with the way these
> options are supposed to work?  Please explain.

OpenLayers uses the current base layer's maxExtent as the max extent
for the map. So your WMS layer must be a base layer for its maxExtent
to be taken into account. Also, make sure you use "maxExtent", and not
"mapExtent".

cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
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 Eric Lemoine
On Thu, Nov 19, 2009 at 9:42 AM, John Pulles  wrote:
> Eric Lemoine schreef:
>
> On Wednesday, November 18, 2009, John Pulles  wrote:
>
>
> Hi list,
>
> 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?


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WFS GetFeature

2009-11-18 Thread Eric Lemoine
On Wednesday, November 18, 2009, stash  wrote:
>
> Hello,
> I have a openlayers map with a wms showing some points. Furthermore a wms
> getfeatureinfo returns some infos when the user is clicking on a point on
> the map. Thereby the wms getfeatureinfo returns a "application/vnd.ogc.gml".
> Afterwards i parse my gml and the user gets the parsed info.
>
> What I want to add now is, that the user only getting some info, when
> certain points are clicked (for example: only when point 2 or 3 is clicked).
>
> I think this is only possible when i replace my wms getfeatureinfo with a
> wfs getfeature + a filter.
>
> Am I right with this thought? The wfs should also return a gml what I can
> parse then.
>
> I hope someone can help me (maybe with an easy example of a wfs getfeature
> request + filter) because I have not so much experience with openlayers.

Hi

look at the getfeature-wfs.html to know how to use the GetFeature
control. And based on what you describe above I think what you want is
a default filter set in the protocol, this default filter will be
composed of mutiple FeatureId filters combined in an OR logical
filter. IIRC the defaultFilter property in OpenLayers.Protocol isn't
in 2.8, but in trunk.

cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


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

2009-11-18 Thread Eric Lemoine
On Wednesday, November 18, 2009, John Pulles  wrote:
> Hi list,
>
> 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;
}
});

cheers,


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] First try with html5 canvas for layers

2009-11-18 Thread Eric Lemoine
On Wednesday, November 18, 2009, Kris Geusebroek  wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi All,
>
>
>
> I’m currently investigating the
> possibilities of integrating html5 functionality into openlayers.
>
> My first try is using canvas for a layer
> instead of div’s
>
>
>
> I’ve setup a sandbox which you can
> use to have a look: 
> http://dev.openlayers.org/sandbox/krisgeus/openlayers/examples/tilecacheCanvas.html
>
>
>
> This is the first example to show it’s
> possible ;-). Only features now are zoom and pan without the resize 
> transition effect.
>
> If anyone has remarks, ideas, feature
> requests, help offerings etc. Feel free to contact me.

This is cool!

May I ask what's your goal with displaying tiles using canvas? Is it
performance? I have never played with canvas so I'm interested to know
and talk about what it can bring to OpenLayers.

Thanks Kris,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] OpenLayers.Control.SelectFeature and shift-click in Firefox

2009-11-16 Thread Eric Lemoine
On Thursday, November 12, 2009, Richard Eichhorn
 wrote:
> I am using OpenLayers.Control.SelectFeature with features which are 
> represented using an externalGraphic.  When I use do a shift-click to 
> multi-select features in Firefox, it opens up a new window with the icon of 
> the feature I just clicked on.
>
> When writing non-openlayers javascript code I have just used preventDefault 
> in firefox to stop the events propagating.
>
> How can I do it in Openlayers?

have you tried fallThrough:false in the map options? (unsure it'll
help in your case)

cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] OpenLayers with Google Maps - how to obtain degree lat/long?

2009-11-16 Thread Eric Lemoine
On Tuesday, November 17, 2009, plen  wrote:
>
> Hello,
>
> I am using OpenLayers 2.8 and based on multiple examples I found, I use the
> following to load a Google Map map layer:
>
> --
> var options = {
>                 projection: new OpenLayers.Projection("EPSG:900913"),
>                 units: "m",
>                 maxResolution: 156543.0339,
>                 maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34,
>                                                  20037508.34, 20037508.34)
> };
> map = new OpenLayers.Map('map', options);
> var layer = new OpenLayers.Layer.Google("Google", {"sphericalMercator":
> true});
> map.addLayer(layer);
> --
>
> I do indeed get the google map layer displayed but what I ran into is that
> these options change how the OL API handles or deals with latlon
> coordinates.  For example, when I click on the map I get the following type
> of "coordinate" when calling the OL getLatLongFromViewportPX() function:
> (Lat: -39135.7584  / Lon: -273950.3093).  If I do a map.getExtent(), which
> typically returns the latlon for the SW and NE boundary corners, now returns
> a value like -381458.9896 / -722521.0097, -322984.6629 / -686366.2955.
> These are obviously not coordinates in degrees but some other value.  My
> application is expecting a decimal coordinate in degrees, which OL returns
> in the getgetLatLongFromViewportPX() and getExtent() function calls when
> google maps are not used.  Now the app does not work.
>
> I see that the "unit" value listed in the options is "m". Not sure if that
> is meters or some other value.  The OpenLayers.Bounds value also does not
> seem to be listed in a latlon coordinate.  In order to get my coordinate
> values in degrees, is there another set of options to use or is there some
> formula/algorithm that can be applied to what comes back from the OL
> functions in order to get the value I am looking for.
>
> Thanks for any insight - Peter

Yes, Google layers do not use the EPSG:4326 (lonl/at) coordinates
system. You can reproject lonlat, bounds and geometry objects to
EPSG:4326 using the transform method:

obj.transform(
new OpenLayers.Projection("EPSG:900913"),
new OpenLayers.Projection("EPSG:4326")
);

where obj is a LonLat, Bounds or Geometry object.

Cheers,


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Huge amount of data crashing browser

2009-11-16 Thread Eric Lemoine
On Mon, Nov 16, 2009 at 1:10 PM, Pedro Baracho  wrote:
> My data can be displayed via WMS. It represents the streets of my city and
> is composed by a huge number of center lines.
>
> I am currently using BBOX strategy and it is insufficient.
> I am going to check cluster strategy. Do you know how can I use it to
> display lines instead of points?

>From the top of my head I remember that you can use the cluster
strategy with other types of geometries than points. However clusters
are always represented as points.

Cheers,
-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Huge amount of data crashing browser

2009-11-15 Thread Eric Lemoine
On Thursday, November 12, 2009, Pedro Baracho  wrote:
> Hello all,
>
> I have huge amount of data being retrieved on a Vector Layer and it is 
> crashing the browser (lack of memory) when it tries rendering it.
>
> I am thinking of using MinResolution, MinExtent and doing some search on 
> current strategies to crop the data, or show the layer only in a determinate 
> level of zoom.
>
> Any suggestions?

you may be interested to look at the BBOX and Cluster strategies. The
former fetches only the data that is contained by the current map
extent. The latter clusters together features that are close to each
other. The two strategies can be used together.

cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Clicks on permalink control trigger clickout on vector layer

2009-11-15 Thread Eric Lemoine
On Saturday, November 14, 2009, Christoph Böhme  wrote:
> Hi all,
>
> in my application [1] a vector layer with an number of features is
> displayed on top of a base map. When users select one of the markers
> the permalink will be updated to include the id of the selected feature.
> This works all fine. The problem comes when users click on the
> permalink. This click will not only activate the permalink but also
> trigger a mouseout event on the vector layer which unselects the
> current feature and updates the permalink. This happens before the
> browser follows the link which makes it impossible to follow a
> permalink with a selected feature.
>
> I tried to add an event listener to the permalink control in the hope
> of catching and stopping the click event before it falls through to
> the map. However, for some reason the event handler is not called.
>
> This is the code I used for adding the event listener:
>
> this.permalink_control = new OpenLayers.Control.Permalink(null, null,
> { eventListeners: {
>         "click": function(e) {
>                 alert("Test");
>                 OpenLayers.Event.stop(e ? e: window.event);
>         }
> }});
> this.map.addControl(this.permalink_control);
> this.permalink_control.activate();
>
> Is this the correct way to add an event listener?

AFAIK you cannot register a browser event listener on a control's DOM
element using eventListeners (or control.events.register).

Have you tried

OpenLayers.Event.observe(control.element, "click", function(e) { ... });

?

cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Point in polygon

2009-11-03 Thread Eric Lemoine
On Wednesday, November 4, 2009, Brad Spencer  wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
> Guys, I have created a vector polygon as follows:
>
>
>
> var parcel01 = new
> OpenLayers.Geometry.LinearRing(pointList);
>
> polygonFeature = new OpenLayers.Feature.Vector( new
> OpenLayers.Geometry.Polygon([parcel01]));
>
> vectorLayer.addFeatures([polygonFeature]);
>
>
>
> I then am parsing a list of external points to include only
> those that are inside the polygon on the map as vector markers.
>
>
>
> I have tried the following with no success:
>
>
>
> If (polygonFeature.intersects(new
> OpenLayers.Geometry.Point(p[0], p[1]))) {// include code…}

and polygonFeature.geometry.intersects()?

Cheers,


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Problem with LayerSwitcher

2009-11-03 Thread Eric Lemoine
On Mon, Nov 2, 2009 at 12:43 PM, Rahn Hanno (rahn)  wrote:
>
> Hello,
>
>
>
> I change the line in my LayerSwitcher.js, like the patch. Then I use the 
> LayerSwitcher in my second map again. But it doesn't work.
>
>
>
> The first LayerSwitcher works fine but the second only shows my Layers (also 
> the Layers I don't want to show with the displayInLayerSwitcher=false 
> function).
>
>
>
> Have I made something wrong?
>
>
>
>
>
> The Layers Highlight and Seen2 should not be shown in the LayerSwitcher. For 
> this I used “displayInLayerSwitcher = false”.
>
> The Rest of the Layers where shown, but I can’t swicth the visbility. I can’t 
> activate the Gemeinden2 radio button.
>
>
>
> Perhaps somebody has another idea and can help me.
>
>
>
> Greetings and a lot of thanks.

Hi

it'd be great if you could provide a small, stripped-down, example
demonstrating the problem. Thanks,

--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Tween Example

2009-11-03 Thread Eric Lemoine
On Tuesday, November 3, 2009, Fubarred  wrote:
>
> Thanks Eric,
>
> I don't think that Tween is going to provide me with what I need. Perhaps
> you can guide me in the right direction. Basically, I was the same smooth
> transition that comes with panTo for zoomToExtent. Is there an easy way to
> do this?

panTo and pan just move the map without changing the zoom level.
zoomToExtent can potentially change the zoom level, and, to my
knowledge, OpenLayers provides no tween-type transition for that case.

> Also, is there a way to fade tiles in as opposed just having them pop up
> unexpectedly?

I'm not sure this is fade in but have you looked at the
transitionEffect layer option? See the transition.html example.

cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Tween Example

2009-11-02 Thread Eric Lemoine
On Monday, November 2, 2009, jvanulden  wrote:
>
> Does someone have an example of how to use tween??? Thank you in advance!


there's a manual test in the OpenLayers code base that you may find
useful: tests/manual/tween.html

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] triggering the save-event is not working

2009-11-02 Thread Eric Lemoine
On Tue, Oct 20, 2009 at 2:51 PM, Marco Scheuble  wrote:
>
> Hi Eric,
>
> thanks for your answer.
> I don't use the trunk version of OL! Why?
> Will there be savestrategy-events in upcoming versions?

yes, it's in trunk.

PS: sorry for the delayed response, I'm currently catching up with
unread messages on the list.




-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WFS filter send using POST ?

2009-11-02 Thread Eric Lemoine
On Tue, Oct 20, 2009 at 7:39 PM, Pere Roca Ristol  wrote:
>
>
>  hi,
>
>  can I send this simple WFS filter via POST? (I want to add multiple
> parameters in the filter and I'm afraid   GET requests will not allow this
> URL length). Where should it be specified?
>
>  wfs = new OpenLayers.Layer.WFS( "myWFS",
> "http://my_geoserver/wfs",{typename:"topp:layer",filter:my_filter});

use Layer.Vector with a Protocol.WFS, and the WFS GetFeature requests
will be sent using POST.


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Mouse Drag Coordinates

2009-11-02 Thread Eric Lemoine
On Fri, Oct 30, 2009 at 1:27 PM, Dave Thomas  wrote:
>
>
>
> Eric Lemoine-2-2 wrote:
>>
>> implementing a specific control based on a Drag handler is what I'd go
>> with. You can look at the DragPan control to know how to use the Drag
>> handler - I tend to think that you could rely on the "move" and "done"
>> callbacks only. Now regarding the conflict with the Navigation
>> control: have you tried making sure your control is activated *before*
>> the Navigation control?
>>
>
> Thanks for the response Eric. Based on your suggestion we'll go with the
> Drag handler method.
> I actually deactivate the navigation on initialisation and only activate at
> run time when a button is clicked.
>
> To be sure though, I removed it from the controls property object that was
> being passed to the Map constructor via options and constructed it the same
> was as the drag handler so I had this...
>
>  var drag = new OpenLayers.Control.Drag();
>   map.addControl(drag);
>   drag.activate();
>
>   var nav = new OpenLayers.Control.Navigation();
>   map.addControl(nav);
>   nav.deactivate();

what if you activate your drag control *after* you activate the
navigation control?

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] png images, vector layers, pop-ups, and IE

2009-11-02 Thread Eric Lemoine
On Fri, Oct 30, 2009 at 3:36 PM, Wendell Turner  wrote:
> On Fri, Oct 30, 2009 at 06:30:45AM +0100, Eric Lemoine wrote:
>> On Thursday, October 29, 2009, Wendell Turner  wrote:
>> >
>> > I can't get pop-ups to appear when using png images on a
>> > vector layer in IE.  I have a vector layer with points that
>> > have .png images.  The images show properly in both Firefox
>> > and IE.  The images have pop-ups enabled.
>> >
>> > It works fine in Firefox (pop-ups actually pop up), but in
>> > IE the mouseover turns the cursor into an insert symbol,
>> > similar to 'I'.  There is no mouse capability on the symbol
>> > in IE.
>> >
>> > Other vector layers with drawn polygons work fine in IE, and
>> > pop-ups occur as normal.
>> >
>> > Is there a way to fix this so mouse-enabled pop-ups appear
>> > when using png images in IE?
>>
>>
>> Hi
>>
>> Are you using Control.SelectFeature?
>
> Yes.

I modified the select-feature-openpopup.html so points with external
graphics can be drawn and selected (see attached patch). The example
works as expected in IE8. Can you modify the example yourself and
reproduce your problem?

Cheers,
-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
diff --git examples/select-feature-openpopup.html examples/select-feature-openpopup.html
index 1493189..28266b0 100644
--- examples/select-feature-openpopup.html
+++ examples/select-feature-openpopup.html
@@ -34,8 +34,12 @@
 var wmsLayer = new OpenLayers.Layer.WMS( "OpenLayers WMS", 
 "http://labs.metacarta.com/wms/vmap0?";, {layers: 'basic'}); 
 
-var polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer");
-
+var polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer", {
+styleMap: new OpenLayers.StyleMap({
+externalGraphic: "../img/marker-gold.png",
+pointRadius: 10
+})
+});
 map.addLayers([wmsLayer, polygonLayer]);
 map.addControl(new OpenLayers.Control.LayerSwitcher());
 map.addControl(new OpenLayers.Control.MousePosition());
@@ -45,6 +49,8 @@
 drawControls = {
 polygon: new OpenLayers.Control.DrawFeature(polygonLayer,
 OpenLayers.Handler.Polygon),
+point: new OpenLayers.Control.DrawFeature(polygonLayer,
+OpenLayers.Handler.Point),
 select: selectControl
 };
 
@@ -87,6 +93,11 @@
 draw polygon
 
 
+
+draw point
+
+
 
 select polygon on click
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Problem with layer switcher

2009-11-01 Thread Eric Lemoine
On Friday, October 30, 2009, Rahn Hanno (rahn)  wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hello list,
>
>
>
> I have a problem with the Layerswitcher control. Perhaps
> somebody can help me.
>
>
>
> I use two different maps with different layers in one
> side. Now I will realise a Layerswitcher for both maps. But the layerswitcher
> only works for one map. The second one shows my layers but I can’t switch
> them. The control boxes can’t be activated.

does the patch attached to <http://trac.openlayers.org/ticket/2331> fixes it?

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Mouse Drag Coordinates

2009-10-29 Thread Eric Lemoine
On Friday, October 30, 2009, Dave Thomas  wrote:
>
> Hi Everyone,

Hi


>
> Hi have what I though would be a simple task but its proving to be a little 
> more frustrating than I anticipated.
>
> What I need to do is get the coordinates for pan events so that I know the 
> coordinates of when the drag started and when it ended. The logical way to do 
> this as far as I thought was to listen for the mousedown (or movestart) and 
> mouseup (or moveend) events and get the coordinates from there. Its not 
> behaving the way I anticipated though. I've tried a whole bunch of different 
> ideas - four of which I'll list here. Surely one of these is close.  I think 
> the first two are the closest.
>
> I'd very much appreciate any input that may help.
>
> Many Thanks
> Dave
>
>
>
> Method 1. Not all Events are recevied and of the ones that are I can't get 
> the coordinates from all of them.
>
> click: yes
> mousemove: yes
> mouseup: yes
> mousedown: no
> movestart: yes - but coordinates recevied are NAN
> moveend: yes - but coordinates received are NAN
>
>
>var options =
>{
>... other settings
>
>   eventListeners: {
>  "movestart": doEvent
>   }
>};
>
>function doEvent(event) {
>   var obj = this.events.getMousePosition(event)


getMousePosition works with browser events only.


>   alert(obj);
> }
>
>
> Method 2. Same results as Method 1
>
>
>map.events.register("mousemove", map, function(e) {
>   var position = this.events.getMousePosition(e);
>   alert(position);
>});
>
>
>
>
> Method 3. Clicks are called but not mousedowns.
>
>
>OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
>   defaultHandlerOptions: {
>  'single': true,
>  'double': false,
>  'pixelTolerance': 0,
>  'stopSingle': false,
>  'stopDouble': false
>   },
>
>   initialize: function(options) {
>  this.handlerOptions = OpenLayers.Util.extend(
>  {}, this.defaultHandlerOptions
> );
>  OpenLayers.Control.prototype.initialize.apply(
> this, arguments
> );
>  this.handler = new OpenLayers.Handler.Click(
> this, {
> 'click': this.doClick,
> 'down': this.doDown,
> 'mousedown': this.doMouseDown
>  }, this.handlerOptions
> );
>   },
>
>   doClick: function(e) {
>  alert('click');
>   },
>   doDown: function(e) {
>  alert('down');
>   },
>   doMouseDown: function(e) {
>  alert('mouseDown');
>   }
>});
>
>
> Method 4.  Callbacks are only received if Navigation is deactivated.
>
>
>OpenLayers.Control.Drag = OpenLayers.Class(OpenLayers.Control, {
>defaultHandlerOptions: {
>stopDown: false
>},
>
>initialize: function(options) {
>this.handlerOptions = OpenLayers.Util.extend(
>{}, this.defaultHandlerOptions
>);
>OpenLayers.Control.prototype.initialize.apply(
>this, arguments
>);
>this.handler = new OpenLayers.Handler.Drag(
>this, {
>'down': this.doDown,
>'up': this.doUp,
>'move': this.doMove,
>'done': this.doDone
>}, this.handlerOptions
>);
>},
>
>doDown: function(e) {
>alert('down');
>},
>   doUp: function(e) {
>alert('up')
>   },
>   doMove: function(e) {
>alert('move');
>},
>   doDone: function(e) {
>alert('done');
>}
>});

implementing a specific control based on a Drag handler is what I'd go
with. You can look at the DragPan control to know how to use the Drag
handler - I tend to think that you could rely on the "move" and "done"
callbacks only. Now regarding the conflict with the Navigation
control: have you tried making sure your control is activated *before*
the Navigation control?

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] png images, vector layers, pop-ups, and IE

2009-10-29 Thread Eric Lemoine
On Thursday, October 29, 2009, Wendell Turner  wrote:
>
> I can't get pop-ups to appear when using png images on a
> vector layer in IE.  I have a vector layer with points that
> have .png images.  The images show properly in both Firefox
> and IE.  The images have pop-ups enabled.
>
> It works fine in Firefox (pop-ups actually pop up), but in
> IE the mouseover turns the cursor into an insert symbol,
> similar to 'I'.  There is no mouse capability on the symbol
> in IE.
>
> Other vector layers with drawn polygons work fine in IE, and
> pop-ups occur as normal.
>
> Is there a way to fix this so mouse-enabled pop-ups appear
> when using png images in IE?


Hi

Are you using Control.SelectFeature?

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


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

2009-10-29 Thread Eric Lemoine
On Thursday, October 29, 2009, Bart van den Eijnden (OSGIS)
 wrote:
> Eric,
>
> are you referring to:
>
> http://trac.openlayers.org/ticket/2255
> ?
>
> I think that's a different issue since it deals with the new GML parser, 
> while the GetFeatureInfo format uses the old GML parser.

you're right. Yet, the discussion on what strategy to use for features
w/o geometries but w/ bounds should still apply.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Overlays only at specific zoom levels

2009-10-29 Thread Eric Lemoine
On Wednesday, October 21, 2009, Derek Watling  wrote:
>
> I am using Google base layers in OpenLayers 2.8 with a my own WMS overlay
> that is only avalilable at at the top 3 zoom levels. My bounding box is set
> to cover South Africa. I have the Google zoom levels limited to between 5
> and 18 with the following code:
>
>     ...
>     var bbox = new OpenLayers.Bounds(bbox = 1780677, -4180188, 3683653,
> -2512026);
>     var mapOptions = {
>         projection: new OpenLayers.Projection("EPSG:900913"),
>         units: 'm',
>         maxResolution: 156543.0339,
>         maxExtent: bbox,
>         restrictedExtent: bbox
>     };
>     var map = new OpenLayers.Map('divMap', mapOptions);
>     map.addControl(new OpenLayers.Control.LayerSwitcher());
>
>     var gmap = new OpenLayers.Layer.Google("Google Streets", {
> "sphericalMercator": true });
>     gmap.MIN_ZOOM_LEVEL = 5;
>     gmap.MAX_ZOOM_LEVEL = 18;
>
>     var myOverlay = new OpenLayers.Layer.WMS(
>         "Custom Overlay",
>         "http://dev/Tilecache/tilecache.py?";,
>         { layers: "Custom", 'maxExtent': bbox, format: "image/png" }
>     );
>     myOverlay.setIsBaseLayer(false);
>     myOverlay.displayOutsideMaxExtent = 0;
>     myOverlay.transitionEffect = "resize";
>
>     map.addLayers([gmap, myOverlay]);
>     
>
> How do I tell OpenLayers that myOverlay only exists for the following
> resolutions?
> 2.38865713348388, 1.19432856674194, 0.597164283370971

have you tried passing these resolutions to youe WMS layer, through
the "resolutions" config option. It should make OpenLayers "stop" the
layer when it's out of range.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] found little bug NavigationHistory / setBaseLayer

2009-10-29 Thread Eric Lemoine
On Wednesday, October 21, 2009, Max Weidemann  wrote:
>
> Hi List,
>
> i found a bug by using the NavigationHistory control.
> If you change the baselayers of a map (for Example in the layerswitcher) the
> NavigationHistory registers an moveend Event and saves the same state of the
> map again.
> if you now try to use the NavigationHistory Control to switch to a previous
> state you have to click multiple times.
> I think this effekt is caused by calling the setCenter function in the
> setBaseLayer function.
>
> I have 2 ideas for solving this Problem and would like to know wich is the
> smartest or if there are smarter solutions.
>
> 1. unregister the moveend event before calling the setCenter function and
> after that register it again.

(I replied to this email this morning, but it looks like my reply
didn't get through)

there may be code relying on moveend being triggered when switching
base layer, so I don't think we should go that path

>
> 2. checking the first entry in the previousStack Array of the
> NavigationHistory-control and compare it with the current map state. if they
> are equal i would not save it in the Array.

doing something like that would make sense to me.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


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

2009-10-29 Thread Eric Lemoine
On Thursday, October 29, 2009, Alexandre Dube  wrote:
> Hi Bart,
>
> bart...@osgis.nl wrote:
>> Hi Alexandre,
>>
>> so you only have the boundedBy element and not the actual geometry in the
>> output?
>>
>
> Yep, no geom is needed for my case.  The bbox is enough.
>
>> If so, I don't think this is currently possible, can you please file an
>> enhancement bug in Trac?
>>
>
> Done : http://trac.openlayers.org/ticket/2329

Hi. I think there already is a ticket for this. IIRC we had some
discussion about this a while ago, it was initiated by François
Vanderbiest. I'm interested in discussing this again. Sorry I can't
look up the ticket and the discussion at the moment.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] How to stop registering events

2009-10-29 Thread Eric Lemoine
On Thu, Oct 29, 2009 at 3:17 PM, Max Stephan  wrote:
>
> Hi Eric,
>
> thanks for your help but I don't get the idea what your code is doing. Could
> you explain it?

it was just to show you that unregister works as expected.

> Furthermore what is the unregister function in general
> exactly doing. Am I right in thinking it stops the previous defined
> registering of an event or is it doing something else?

it unregisters an event listener, it doesn't stop the event from being
triggered.


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] How to stop registering events

2009-10-29 Thread Eric Lemoine
On Thu, Oct 29, 2009 at 1:00 PM, Max Stephan  wrote:
>
> Hi list,
>
> I´m using layer.events.register('loadend',map,zoomToFeature); in my
> application. The scenario is the following:
> In a list the user clicks on an icon that represents a polygon-Feature and
> has an ID. After that I´m querying my Geoserver for the feature with this ID
> and get the response back. From this I can calculate the bounds of this
> geometry and zoom to it.
> Now I want to select this layer because most of the features are surrounded
> by other features to show the user which one he selected in the list. For
> this to happen I have to wait till the layer is loaded (it contains all the
> features of the same featureclass that I´m querying from the Geoserver).
> Then I´m selecting the feature via selectControl.select(//FeatureObject//);.
> The problem is: The script keeps on registering the loadend event and for
> that reason always reactivates the queried feature (for example when I click
> on another feature).
> So, what I need is a way to deactivate the registering after the first
> registration of the event. I tried
> layer.events.unregister('loadend',map,zoomToFeature); but that´s not
> working.

Hi

it should work. I just did the following in the FireBug console:

>>> var cb = function() {}; scope = {};
>>> var e = new OpenLayers.Events({}, null, ["eventtype"]);
>>> e.register("eventtype", scope, cb);
>>> e.listeners["eventtype"].length == 1
>>> e.unregister("eventtype", scope, cb);
>>> e.listeners["eventtype"].length == 0

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Combine Filter and OpenLayers.Layer.WMS

2009-10-29 Thread Eric Lemoine
On Thu, Oct 29, 2009 at 8:58 AM, stash  wrote:
>
> Hi,
> thanks for the answer. I read your example and now I know how to implement
> the sld_body.
>
> But I haven't seen a filter within the sld. Does it matter, where to
> implement the filter within the sld_body. How does it look like?
>
> I try to implement it somewhere in the sld. I hope it works.
>
> Best regards
> stash
>
> (What does transparent: true mean)
> Do I write 'transparent': true or transparent:true

"transparent" has nothing to do with "sld_body", this is just another
WMS parameter. When set to true the WMS is requested to return a
transparent image.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WFS download entire layer possible?

2009-10-29 Thread Eric Lemoine
On Wednesday, October 21, 2009, Jimmy Aumard  wrote:
> Hi everyone,
>
> I try to find a method to download an entire WFS layers but OpenLayers put 
> the bbox of current viewport.
> 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"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  xmlns:feature="http://www.openplans.org/topp";> xmlns:ogc="http://www.opengis.net/ogc";>
> 
> the_geom
> http://www.opengis.net/gml"; srsName="EPSG:900913">
> -3072157.040273 4777008.5190921
> 3805952.5117085 7120262.0577829
> 
> It's possible to give a specific bbox to the request or 
> don't use bbox?
> Can you help me?

do you use Layer.WFS? You should use Layer.Vector, and configured your
vector layers with a Protocol.WFS and a Strategy.Fixed. The latter
being what will make the entire WFS layer being loaded when the layer
is added to the map.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] little bug by using NavigationHistory and setBaselayer

2009-10-29 Thread Eric Lemoine
On Thursday, October 22, 2009, Max Weidemann  wrote:
>
> Hi List,
>
> i found a bug by using the NavigationHistory control.
> If you change the baselayers of a map (for Example in the layerswitcher) the
> NavigationHistory registers an moveend Event and saves the same state of the
> map again.
> if you now try to use the NavigationHistory Control to switch to a previous
> state you have to click multiple times.
> I think this effekt is caused by calling the setCenter function in the
> setBaseLayer function.
>
> I have 2 ideas for solving this Problem and would like to know wich is the
> smartest or if there are smarter solutions.
>
> 1. unregister the moveend event before calling the setCenter function and
> after that register it again.

you mean having setCenter not triggering "moveend" in that specific case?

I think we shouldn't change this, as there maybe code relying on
"moveend" being triggered when switching base layer.

>
> 2. checking the first entry in the previousStack Array of the
> NavigationHistory-control and compare it with the current map state. if they
> are equal i would'nt save it in the Array.

such a check would make sense to me. We could either introduce a
tolerance option in there.

Thanks,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Register multiple map layers for same event... how???

2009-10-29 Thread Eric Lemoine
On Wednesday, October 28, 2009, plen  wrote:
>
> Eric,
>
> Thanks for the response.  You have answered some of my questions in the past
> and I appreciate it.  As for this question, I did find the SelectFeature
> control you mentioned and was able to successfully add more than one
> OpenLayers.Layer.Vector layer to the control and was able to register a
> "featureselected" event via:
>
> getFeaturesLayer1().events.register("featureselected", getFeaturesLayer1(),
> fclick);
>
> All works fine.  I orginally thought, however, that my real problem would be
> solved in finding this solution, but it is not.  What I really need is to be
> able to share events amoung two different types of layers.  For example, I
> need to have an OpenLayers.Layer.Vector and an OpenLayers.Layer.Markers
> share the same event (rather than two OpenLayers.Layer.Vector share the same
> event).  Looking at the API for the SelectFeature control, it seems to
> indicate that only OpenLayers.Layer.Vector layers can be used.  Is this true
> or is there a way to have two different types of layers share the same
> event?

the select feature control works with vector layers only. Anyway, it
is now recommended to use Layer.Vector for markers as well, through
the externalGraphic style property.

Sorry if I misunderstood your question.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Register multiple map layers for same event... how???

2009-10-28 Thread Eric Lemoine
On Thursday, October 22, 2009, plen  wrote:
>
> Hello,
>
> OpenLayers v2.7 or v2.8 added the capability that would allow multiple map
> layers to listen for the same event, such as a mouseclick or mouseover.  I
> cannot find an example of how this is done.  Does anyone know?

the SelectFeature control can now be configured with multiple layers.
Search for "SelectFeature" in the examples.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] the most suitable library to extend openlayers?

2009-10-15 Thread Eric Lemoine
2009/10/14 Mario Nuñez Jimenez :
> Hello,
> I want to add some functinalities and an improved look an feel for my web 
> application so I don't know which js library will do the best job, but I 
> don’t want to get involved into a very complex developments...
> Should I use GeoExt?

Note that GeoExt is a replacement for Ext. GeoExt provides components
bringing Ext and OpenLayers together. Applications using GeoExt also
include OpenLayers and Ext.



-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Featureserver + Openlayers

2009-10-14 Thread Eric Lemoine
On Wednesday, October 14, 2009, goliah  wrote:
>
>
> Thanks Eric,
>
> I find mapfish very interesting and I think I'll switch soon to it (being an
> openlayers user and knowing some bits of Pylons).
> What scares me a bit is that (as long as I understood from a quick look in
> the wiki) setting up a WFS is not as easy as writing a config file for
> feature server, but obviusly you must pay something in order to gain some
> flexibility.

MapFish web services aren't WFS web services. MapFish web services
expose HTTP APIs based on GET (read features), POST (create features),
PUT (update a feature) and DELETE (delete a feature). Now, as the
application developer, you're free to implement WFS web services
within your MapFish application if that's what you want, but using
FeatureServer or GeoServer would prove lot easier. I'm happy to
discuss this on the mapfish mailing list...

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Featureserver + Openlayers

2009-10-13 Thread Eric Lemoine
On Tuesday, October 13, 2009, goliah  wrote:
>
> Thanks Alexandre,
>
> I'll check it out.
> Do you think I should switch to a mapfish server for a production app?
> It seems like it is more mantained.

Hi. I guess it depends on your needs. If FeatureServer just does the
job for you then I don't much benefit in switching to MapFish (except
maybe that we always make sure that client and server speak the same
language in MapFish). If you need to customize your web services then
use MapFish - MapFish is a framework for creating applications, an
application created with MapFish belongs to the developer, who is free
to modify his application and his application's web services to meet
his needs. It is also important to note that MapFish only supports
PostGIS as the data store at this time, support for MySQL and
Spatialite are in the plans.

Hope this helps,

Eric




>
> Thanks again
> Mauro
>
>
>
>
> Alexandre Dube wrote:
>>
>> Hi,
>>
>> Here's a working OpenLayers+FeatureServer demo :
>> http://dev4.mapgears.com/bdga-fs/
>>
>> It uses the MapFish protocol since MapFish server can be "talked to"
>> pretty much the same way as FeatureServer.
>>
>> Hope this helps,
>>
>> Alexandre
>>
>> goliah wrote:
>>> Dear list,
>>>
>>> I'm trying to use OpenLayers and Feature Server.
>>> What i'd like to do is use WFS-T protocol to make a simple feature
>>> editor.
>>>
>>> I've set up Featureserver (beautiful software) easily under CGI, and
>>> tried
>>> to setup something like the
>>> WFS-Transactional example:
>>> http://www.openlayers.org/dev/examples/wfs-protocol-transactions.html
>>> http://www.openlayers.org/dev/examples/wfs-protocol-transactions.html
>>>
>>> I've had some problems using this example on my server, in particular
>>> with
>>> WFS protocol, that I had to change to HTTP Protocol for making things
>>> work
>>>
>>> I ended up with this code:
>>>
>>> http://www.maurob.org/fttest/index.html
>>>
>>> on line 113 you can find the wfs layer declaration:
>>>
>>> //code here
>>>
>>> wfs = new OpenLayers.Layer.Vector("Scribble", {
>>>                                      protocol: new 
>>> OpenLayers.Protocol.HTTP({
>>>                                              url:
>>> "http://www.maurob.org/featureserver/featureserver.cgi/scribble";,
>>>                                              format: new 
>>> OpenLayers.Format.GeoJSON()
>>>                                              }),
>>>                                      strategies: [
>>>                                              new 
>>> OpenLayers.Strategy.Fixed(),
>>>                                              saveStrategy
>>>                                      ],
>>>                                      projection:new 
>>> OpenLayers.Projection("EPSG:4326")
>>>                              });
>>>
>>>
>>> //end code
>>>
>>>
>>> This because, if using OpenLayers.Protocol.WFS I couldn't set the right
>>> format to talk to featureserver.
>>>
>>> It is quite working now (can add and modify features),
>>> Anyway, I still cannot delete feature (seems like DELETE request is not
>>> understood by Featureserver)
>>>
>>> Do you think mine is a reasonable setup of the wfs layer declaration in
>>> openlayers (protocol/format) ?
>>> which is right way to handle it?
>>>
>>> Thanks a lot for any idea.
>>> Mauro
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Alexandre Dubé
>> Mapgears
>> www.mapgears.com
>>
>> ___
>> Users mailing lis--
> View this message in context: 
> http://n2.nabble.com/Featureserver-Openlayers-tp3797197p3818851.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Need help changing fill/stroke colour for a RegularPolygon

2009-10-10 Thread Eric Lemoine
On Sunday, October 11, 2009, noosy  wrote:
>
> Hi,
>
> Thanks for the reply, I didn't think there was either but I thought i would
> try it anyway!
>
> You may have noticed I have already got "Polygon" in there but still no
> luck..
>
> Any other suggestions? Surely this must be a straightforward thing?

Hi. This is a known issue. The RegularPolygon handler ignores
layerOptions. See <http://trac.openlayers.org/ticket/2232>.

Cheers,
>
>
>
> Ivan Grcic-2 wrote:
>>
>> Hi, I dont think there is such symbolizer as RegularPolygon, thers
>> only symbolizers for Point, Line and Polygon. So Id try with Polygon.
>>
>> Cheers
>>
>> On Fri, Oct 9, 2009 at 6:01 AM, noosy
>>  wrote:
>>>
>>> Hi,
>>>
>>> I have the following code:
>>>
>>> var sketchSymbolizers = {
>>>    "RegularPolygon": {
>>>        strokeWidth: 2,
>>>        strokeOpacity: 1,
>>>        strokeColor: "#66",
>>>        fillColor: "#cbc7f0",
>>>        fillOpacity: 0.3
>>>    },
>>>    "Point": {
>>>        pointRadius: 4,
>>>        graphicName: "square",
>>>        fillColor: "white",
>>>        fillOpacity: 1,
>>>        strokeWidth: 1,
>>>        strokeOpacity: 1,
>>>        strokeColor: "#66"
>>>    },
>>>    "Polygon": {
>>>        strokeWidth: 2,
>>>        strokeOpacity: 1,
>>>        strokeColor: "#66",
>>>        fillColor: "#cbc7f0",
>>>        fillOpacity: 0.3
>>>    }
>>> };
>>>
>>> var style = new OpenLayers.Style();
>>> style.addRules([
>>>    new OpenLayers.Rule({symbolizer: sketchSymbolizers})
>>> ]);
>>>
>>> var sm = new OpenLayers.StyleMap({"default": style});
>>>
>>> var polyOptions = {sides: 40, persist: true, layerOptions: {styleMap:
>>> sm}};
>>>
>>>  var measureCirc = new GeoExt.Action({
>>>        icon: './draw_circle_off.png',
>>>        cls: 'x-btn-icon',
>>>        control: new OpenLayers.Control.Measure(
>>>            OpenLayers.Handler.RegularPolygon, {
>>>               handlerOptions: polyOptions
>>>           }
>>>        ),
>>>        map: mapPanel.map,
>>>        // button options
>>>        toggleGroup: "draw",
>>>        allowDepress: true,
>>>        // check item options
>>>        group: "draw"
>>>    });
>>>
>>> For some reason my circle is still orange :(
>>>
>>> The above code works fine with a OpenLayers.Handler.Polygon so what is
>>> the
>>> problem with the RegularPolygon?
>>>
>>> I have gone into Firebug and modified the following
>>>
>>> measureCirc -> control -> handler -> style -> fillColor -> "cbc7f0"
>>>
>>> ... and the colour changes to purple :) But I don't know how to do this
>>> programmatically as everything I have tried has had no effect. Please
>>> direct
>>> me as to how I can change the colour (so that it remains this colour on
>>> zoom/pan also) so long as the geometry persists.
>>>
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/Need-help-changing-fill-stroke-colour-for-a-RegularPolygon-tp3792284p3792284.html
>>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>>> ___
>>> Users mailing list
>>> Users@openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>>
>>
>>
>>
>> --
>> Ivan Grcic
>> ___--
> View this message in context: 
> http://n2.nabble.com/Need-help-changing-fill-stroke-colour-for-a-RegularPolygon-tp3792284p3801930.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Getting featurecollection from GeoJSON?

2009-10-06 Thread Eric Lemoine
On Fri, Oct 2, 2009 at 11:00 PM, Christian Schanz
 wrote:
> Hello,
>
> I need a function that returns a featurecollection which is created
> from a GeoJSON.
> So I think that I need to do something like the following:
>
> function getGeoJSON() {
>     var featurecollection;
>     function handler(request) {
>         //TODO: What to do here?
>     }
>     var request = OpenLayers.Request.GET( {
>             url: "http://path/to/my/GeoJSON";,
>             callback: handler
>     });
>     return featurecollection;
> }
>
> But how exactly should the handler look like?
> I have tried to add something like
>     featurecollection = request.responseText;
> to the handler but then I get no features returned at all.
>
> And as a second question: Should my GeoJSON generating server insert a
> mime-type at the beginning of the
> response or is this not needed?

I'd recommend using a protocol. Something like this:

var protocol = new OpenLayers.Protocol.HTTP({
url: "url-to-geojson",
format: new OpenLayers.Format.GeoJSON()
});

protocol.read({
callback: function(response) {
if(response.success()) {
var features = response.features;
console.log(features);
    } else {
console.log("failure");
}
}
});


Hope this helps,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] triggering the save-event is not working

2009-10-06 Thread Eric Lemoine
On Mon, Oct 5, 2009 at 1:24 PM, Marco Scheuble  wrote:
>
> Hi List,
>
> After reading
> http://n2.nabble.com/Trigger-save-event-td3301517.html#a3301517 this thread
> about troubleshooting this problem , I have still problems registering the
> success-event when saving changes of a vectorlayer.
>
> following message is given by the firebug:
> "saveStrategy.events is undefined"

do you use OpenLayers trunk? The save strategy does not have events in
the 2.8 version.

>
> this is my code:
>
>        saveStrategy = new OpenLayers.Strategy.Save();
>
>        saveStrategy.events.register("success", saveStrategy, ausgabe);
> or     saveStrategy.events.on("success": ausgabe);
>
> the
> http://dev.openlayers.org/docs/files/OpenLayers/Strategy/Save-js.html#OpenLayers.Strategy.Save.EVENT_TYPES
> API  says that the event can be registered like this:
>        protocol.events.register(type, obj, listener);

there was an error in the doc, I just corrected it in trunk.


Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Canceling move / zoom events when features unsaved

2009-09-30 Thread Eric Lemoine
On Wednesday, September 30, 2009, João Domingues  wrote:
> Hi all,
>
> I'm trying to prevent loosing unsaved features on pan / zoom events. I was 
> trying to redefine those event handlers for my wfs layer, to present a 
> message to the user, who should confirm or cancel the event before the layer 
> refresh is triggered. But still no success... another possibility is saving 
> copies of features, but doesn't seem right. Has anyone tried this before? any 
> sugestions?

Can't you use a Fixed strategy?

Cheers,


>
> Thanks,
> João Domingues
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] map paning issue

2009-09-29 Thread Eric Lemoine
On Tue, Sep 29, 2009 at 8:00 AM, runningcodez  wrote:
>
> 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?

GeoExt is not a version or flavor of Ext. It's a separate library,
whose classes are based on Ext classes.





-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] enabling map.fractionalZoom crashes SphericalMercator layers (Google/Yahoo and maybe others)

2009-09-23 Thread Eric Lemoine
On Wednesday, September 23, 2009, cgp  wrote:
>
> Hi,
> I had the same problem a while ago with the Google base layers, and if I
> remember correctly, it had something to do with the fact that Google map
> tiles have fixed zoom levels, which means that it doesn't support
> fractionalZoom.

Right. You cannot use fractionalZoom when using google, or any other
fixed-resolutions layers.




>
> http://groups.google.co.in/group/Google-Maps-API/browse_thread/thread/f7ac15c824a7b0c6
>
> Like I said, that was a while back (about 2 months ago) and I haven't tried
> it since. Maybe they've added support to that or something. Who knows?
>
> I don't know about the other layers: Yahoo, Virtual Earth etc as I have not
> worked with them.
>
>
>
>
>
> BrainDrain wrote:
>>
>> Hi all!
>> I'm a Little Confused. Simply adding fractionalZoom: true to map options
>> (or for ex. here:
>> http://openlayers.org/dev/examples/spherical-mercator.html) crashes my
>> webapp (on map.zoomToMaxExtent())!
>> I use my huge amount of vector data (map server output projection is
>> spherical mercator) as an overlay to google map. And I need
>> fractionalZoom! How can I fix that???
>> Look in to the attachment.
>>  http://n2.nabble.com/file/n3702339/SpericalMercator.zip
>> SpericalMercator.zip
>> Thanks.
>>
>
> --
> View this message in context: 
> http://n2.nabble.com/enabling-map-fractionalZoom-crashes-SphericalMercator-layers-Google-Yahoo-and-maybe-others-tp3702339p3702400.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] How do you "unregister" a getFeatureInfo request?

2009-09-23 Thread Eric Lemoine
On Mon, Sep 21, 2009 at 7:45 PM, cgp  wrote:
>
> I have the click event registered like this:
>
>>>>>
>                map.events.register('click', map, function (e) {
>                        var params = {  REQUEST: "GetFeatureInfo",
>                                                EXCEPTIONS: 
> "application/vnd.ogc.se_xml",
>                                                BBOX: map.getExtent().toBBOX(),
>                                                X: e.xy.x,
>                                                Y: e.xy.y,
>                                                INFO_FORMAT: 'text/html',
>                                                QUERY_LAYERS: layer_info,
>                                                FEATURE_COUNT: 50,
>                                                Styles: '',
>                                                Layers: layer_info,
>                                                srs: 'EPSG:900913',
>                                                WIDTH: map.size.w,
>                                                HEIGHT: map.size.h,
>                                                format: 'image/png'     };
>                        
> OpenLayers.loadURL("http://app-serv-01-uat/geoserver/wms";, params, this,
> setHTML, setHTML);
>                        OpenLayers.Event.stop(e);
>                });
>
> But I only want the click event to happen if the layer is currently visible
> (i.e. if it is checked in the Layer Switcher). Otherwise, if the user is not
> currently viewing the layer, then the getFeatureInfo request should not be
> called.

can't you just check layer.getVisibility() in the "click" callback?

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] OpenLayers.Request.GET doesn't get data

2009-09-22 Thread Eric Lemoine
On Tuesday, September 22, 2009, Tobias Wendorff
 wrote:
> Hi there,
>
> how can I make OpenLayers.Request.GET work?
>
> I've changes this in the example-file "click.html":
>
> trigger: function(e) {
>      var lonlat = map.getLonLatFromViewPortPx(e.xy);
>      var request = OpenLayers.Request.GET({
>          url: 'http://127.0.0.1/coordinates.php',
>          params: {get: lonlat}
>      });
>      alert(request.responseText);
> }
>
> "coordinates.php" looks like this:
>
>  header('content-type: text/plain');
> echo $_GET['get'];
> ?>
>
> The PHP-script works without a problem, but the messagebox
> of OpenLayers is empty. What's wrong here?

You need to pass the GET function a callback:

OpenLayers.Request.GET({
url: "url",
params: {
get: "get"
},
success: function(request) {
alert(request.responseText);
}
});

Look at the API docs, you can also pass "failure" and "callbacks"
functions. You use the latter when you yourself want to determine
error conditions.

Cheers,
>
> Best regards,
> Tobias
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] (no subject)

2009-09-22 Thread Eric Lemoine
Please ask the question to the MapFish mailing list. Thanks,

On Tue, Sep 22, 2009 at 3:58 PM, Rauch, Barbara  wrote:
> Hello,
>
>
>
> I successfully implemented the Mapfish Print Module in my OpenLayers-Client
> for to print WMS and WFS-Symbols. Afterwards I embedded a layer in
> OpenLayers using the ArcGIS-Rest API, but it’s not possible to print this
> layer. The PDF is produced, but when I open it, the map-image is missing,
> it’s a white PDF only with title, comment, etc...
>
>
>
> Does anybody know, if it’s even possible to print this layer or is the
> ArcGIS Rest API not yet supported in the Print Module? In the *.yaml I
> allowed the new host from the ArcGIS-Server.
>
>
>
> Thanks and greetings
>
> Marleen
>
>
>
>
>
> Mit freundlichen Grüßen
> Barbara Rauch
>
>
> Klima u. Lufthygiene
> Fon: +49 201 2069-399
>
> P Bitte denken Sie an die Umwelt, bevor Sie diese E-Mail ausdrucken.
>
>
>
>
>
>
>
> _______
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>



-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] ND and Sphinx

2009-09-21 Thread Eric Lemoine
On Mon, Sep 21, 2009 at 4:48 PM, Yves Moisan  wrote:
>
>> AFAIK Sphinx doesn't have a built-in mechanism for auto-documenting
>> JavaScript code. GeoExt has its own mechanism (jst) for that.
>
> Thanx Eric.  In the meantime I realize that Sphinx "isn’t primarily a
> tool for fully-automatic API and code documentation. Instead, its focus
> is on narrative documentation, meant to be read in a particular
> order." 
> (http://conference.scipy.org/proceedings/SciPy2008/paper_6/full_text.pdf).  
> I'll look for jst.

Sphinx has an autodoc extension for documenting Python code.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] ND and Sphinx

2009-09-21 Thread Eric Lemoine
On Mon, Sep 21, 2009 at 2:32 PM, Yves Moisan  wrote:
> Hi All,
>
> We're looking at a documentation engine and I see OpenLayers uses ND for
> the API and Sphinx for its docs.  Is this dual scheme for documentation
> a matter of circumstance (e.g. ND was used first and Sphix was found to
> be relevant later) or are there relative merits to ND for API doc and
> Sphinx for users doc ?

AFAIK Sphinx doesn't have a built-in mechanism for auto-documenting
JavaScript code. GeoExt has its own mechanism (jst) for that.



-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] catch the safe.success event

2009-09-18 Thread Eric Lemoine
On Wed, Sep 16, 2009 at 10:47 AM, Marco Scheuble  wrote:
>
> Hi list,
>
> I'm having troubles with catching the success event, when saving a wfs
> layer.
> Saving and everything works fine, but I don't know, how to register/catch
> this event!
>
> here is some code:
>
> saveStrategy = new OpenLayers.Strategy.Save();
>
> var poly  = new OpenLayers.Layer.Vector( 'Flächen', {
>        strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy ],
>        projection: gk,
>        styleMap: styles,
>        protocol: new OpenLayers.Protocol.WFS({
>                version: '1.1.0',
>                srsName: 'EPSG:31467',
>                url: '/geoserver/wfs',
>                featureNS :  'http://www.openplans.org/topp',
>                featureType: 'poly',
>                geometryName: 'the_geom'})
>        });
>
> and now there must be s.th. like this:
>
> ??.events.on({"success": message})
> function message(event){...}
>
> but i don't know what exactly to write

saveStrategy.events.on({
   success: function(evt) {
   var response = evt.response;
   var features = response.features;
   }
});

Hope this helps,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] How to Improve speed in IE when dealing with a lot of elements? Clusters?

2009-09-13 Thread Eric Lemoine
On Tuesday, September 8, 2009, Philip Bruvoll  wrote:
>
>
>
>
>
> Hi, we have built an application with OpenLayers, and it seems we have too 
> many elements in
> the map for IE to handle properly (works ok in FF and Chrome).
> Amongst other tings, we need to mark about 300 locations (and update their 
> position from time to time). They should be selected on mouse-over
> and trigger some functions on left and right click. Currently we are using a 
> Vector-layer containing point-features.
> I've had a look at the cluster example, 
> http://openlayers.org/dev/examples/strategy-cluster.html.
> Is this the best way to go, or are there any other ways of improving IE 
> performance?
> Any suggestions for gaining performance are welcome :)

Hi. The cluster strategy will yield better display performace (fewer
VML objects). However it will not speed up feature parsing - same
number of objects in the response from the server. To me the cluster
strategy helps more on the visualization side than on the performance
side, but this is just a guess as I've never done any experiment
actually showing it.

Cheers,



>
> Kind regards,
> Philip Bruvoll
>
>
> check out the rest of the Windows Live™.
> More than mail–Windows Live™ goes way beyond your inbox.
>  More than messages <http://www.microsoft.com/windows/windowslive/>
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] How to change the style of the "cursor" when dragging/resizing/reshaping/rotating?

2009-09-13 Thread Eric Lemoine
On Thursday, September 10, 2009, cgp  wrote:
>
> I don't know what it's called, but you know when you click on a polygon (for
> example) there is a point that appears in the middle of it for you to click
> and drag? And then for resize/rotate, there is that same point that appears
> on the polygon's bottom-right corner that you can use to drag around so you
> can rotate or resize the polygon? How do you change that point's style so
> that it's "standardized" for modifyFeature and easily distinguishable from
> other points on the map? Perhaps, change it to a cross or 'x' style so that
> we know that those are the points to be dragged instead of other markers on
> the map?

i'm afraid this isn't supported by OpenLayers at this time. Though you
may be able to achieve what you want by defining a stylemap (and a
context) in your application.



>
> Thanks for your help.
> --
> View this message in context: 
> http://n2.nabble.com/How-to-change-the-style-of-the-cursor-when-dragging-resizing-reshaping-rotating-tp3618337p3618337.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
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 Eric Lemoine
On Thursday, September 10, 2009,   wrote:
> 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.

at least we agree Bart :-)



-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
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 Eric Lemoine
On Thursday, September 10, 2009, myOpenLayersUName
 wrote:
>
> Hello,

Hi


>
> If there is something I am doing incorrectly in trying to access the
> railway_30m layer (below) transparently,

move "transparent" in the first object passed to the constructor (the
3rd argument), alongside the "layers" property. "transparent" is an
HTTP parameter of the layer, not an option.




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
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Dynamically add vector layer from database

2009-09-06 Thread Eric Lemoine
On Saturday, September 5, 2009, frknml  wrote:
>
>
>  Hi everybody;

Hi


>
> I'm new for openlayers and i need your helps.My problem is i have to add
> vector layer which filled with points which comes from database .What is
> your suggestions how can i get data from database and create a
> vectorlayer?

You basically have two options for serving vector data: either (a) use
an external software such as GeoServer, MapServer or FeatureServer, or
(b) implement it in your application. For the latter you can rely on
existing librairies and/or frameworks.

> One way is making an ajax request to my servlet and servlet
> returns datas as json or xml format to my client side and adding this points
> one by one to my vector layer,

Yes. GeoJSON would yield good performance - parsing JSON is faster
than XML in the browser.

If you are to implement data serving within your java webapp and want
to use GeoJSON as the data representation format I'd recommend looking
at the MapFish GeoJSON Java library [*].

[*] 
<http://trac.mapfish.org/trac/mapfish/browser/trunk/MapFish/server/java/mapfish-geo-lib>




> this is an inefficient way please show me the
> possible way or ways.

Sounds good to me. Client side you'd use an HTTP protocol
(OpenLayers.Protocol.HTTP) with a format (ex :
OpenLayers.Format.GeoJSON) in your vectoe layer.

Cheers,

>
> Faruk Namlı
> --
> View this message in context: 
> http://n2.nabble.com/Dynamically-add-vector-layer-from-database-tp3584364p3584364.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> ___
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WMSGetFeatureInfo with IE

2009-09-02 Thread Eric Lemoine
On Wed, Sep 2, 2009 at 7:13 PM, Micho Gar wrote:
> Hi all,
>
> I have a code to realise a GetFeatureInfo and runs well on Firefox but not
> return any result in IE. Reading the documentation I have not seen nothing
> about this. I think it work the same for both.
>
> Something about this??

Some code to show the list?


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] IE7 vector rendering error

2009-09-02 Thread Eric Lemoine
On Wed, Sep 2, 2009 at 10:23 AM, Jo Cook wrote:
>
> Hi Eric,
>
> Yeah, that line is there

dunno what's going on then...

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] RegularPolygon Styling

2009-09-02 Thread Eric Lemoine
On Wed, Sep 2, 2009 at 10:40 AM, Andreas Hocevar wrote:
> Eric Lemoine wrote:
>> On Tue, Aug 25, 2009 at 7:20 PM, Heidt, Christopher
>> M. wrote:
>>
>>> The "temporary" style that exists in the other shape handlers
>>> doesn't seem to work with RegularPolygon.
>>> How do I change the style of a RegularPolygon during the draw phase?
>>>
>>
>> Hi.
>>
>> Either write a patch to Handler/RegularPolygon.js so it takes the
>> layerOptions config option into account (as Handler/Point.js does),
>
> Such a patch already exists, it just needs some unit tests:
> http://trac.openlayers.org/attachment/ticket/2232/openlayers-2232.patch

Thanks for the information Andreas.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


<    1   2   3   4   5   6   7   8   9   >