Re: [OpenLayers-Users] EditingToolbar and RegularPolygon

2010-08-23 Thread Alexandre Dube
This could help : http://www.openlayers.org/dev/examples/regular-polygons.html Regards, Alexandre On 10-08-23 07:28 AM, Mengu wrote: Hello everyone, There are Path handler, Point handler and Polygon handler in the Editing Toolbar. How can I add RegularPolygon? Thanks in advance.

Re: [OpenLayers-Users] WFS GetFeature Example

2010-08-17 Thread Alexandre Dube
Ashley, This is not the example you should be looking for, see this one instead : http://www.openlayers.org/dev/examples/wfs-protocol-transactions.html Regards, Alexandre On 10-08-17 11:20 AM, mortac8 wrote: I am looking at the WFS GetFeature example [1] and trying to figure out how to

Re: [OpenLayers-Users] Auto-refreshing a GeoRSS layer

2010-08-10 Thread Alexandre Dube
Hi Bill, I never used it, but it would seem that the 'Refresh' Strategy could do the trick for you. Regards, Alexandre On 10-08-10 01:05 PM, Hubick, William wrote: Hi Everyone, My project is considering GeoRSS as our data-sharing standard with partners. I am pleased with how easily

Re: [OpenLayers-Users] clickTolerance on selectFeature?

2010-08-04 Thread Alexandre Dube
the correct value. I also tried altering the clickTolerance in openlayers.js, but that didn't do anything either. Thanks, Alex. Date: Tue, 03 Aug 2010 08:12:00 -0400 From: Alexandre Dube ad...@mapgears.com mailto:ad...@mapgears.com Subject: Re: [OpenLayers-Users] clickTolerance on selectFeature

Re: [OpenLayers-Users] clickTolerance on selectFeature?

2010-08-03 Thread Alexandre Dube
Hi Alex, 'clickTolerance' is a OpenLayers.Handler.Feature property. If you look in the Select.js file, you'll see that the handler is set inside the initialize method and that there is no way other than modifying the code there to set your own 'clickTolerance'. A thing you could do is to

Re: [OpenLayers-Users] add remove vertex in line feature??

2010-06-09 Thread Alexandre Dube
Hi, It's possible with the ModifyFeature control [1]. Use 'draw line', draw your line then press the 'del' key when hovering a vertex to remove it. [1] http://www.openlayers.org/dev/examples/modify-feature.html Regards, Alexandre Imran Rajjad wrote: Hi, I`m trying to draw a pattern path

Re: [OpenLayers-Users] add remove vertex in line feature??

2010-06-09 Thread Alexandre Dube
single line segment and then removing it? I will take a look at the link. Thanks regards, Imran On Wed, Jun 9, 2010 at 6:08 PM, Alexandre Dube ad...@mapgears.com wrote: Hi, It's possible with the ModifyFeature control [1]. Use 'draw line', draw your line then press the 'del' key when

Re: [OpenLayers-Users] get feature info of vector layer

2010-06-03 Thread Alexandre Dube
Hi Imran, See : http://www.openlayers.org/dev/examples/select-feature-openpopup.html http://www.openlayers.org/dev/examples/highlight-feature.html Regards, Alexandre Imran Rajjad wrote: Hi, I have a vector layer containing some features. I want to view the attributes upon clicking them.

Re: [OpenLayers-Users] ZoomBox event

2010-06-02 Thread Alexandre Dube
Mark, How about registering an activate event on your ZoomBox control to register a map zoomend event in order to toggle your active control ? Something like that (untested) : YourZoomBoxCtrl.events.on({activate: onZoomBoxActivate, scope: YourZoomBoxCtrl }); function onZoomBoxActivate(){

Re: [OpenLayers-Users] MinZoomLevel with WMS layer

2010-05-18 Thread Alexandre Dube
Luis, How about minScale or minResolution properties of the Layer object ? Here's an example using these properties, but the lines are commented and they are used in the map object. Try one in one of your layer objects. http://www.openlayers.org/dev/examples/zoomLevels.html Regards,

Re: [OpenLayers-Users] ModifyFeature with SelectFeature hover/highlight type capability

2010-05-10 Thread Alexandre Dube
Hi Charles, You could achieve what you want be creating a SelectFeature control with highlightOnly:true for highlight and display info and a standard ModifyFeature control for the second one. By registering featurehighlighted on the first control should allow the display of the hovered

Re: [OpenLayers-Users] Basic marker questions

2010-05-04 Thread Alexandre Dube
Hi Mike, See : http://www.openlayers.org/dev/examples/draw-feature.html http://www.openlayers.org/dev/examples/wfs-protocol-transactions.html See also below : Mike Purvis wrote: I'm working on an application that allows the user to add lines and vertices to the map, to construct routes.

Re: [OpenLayers-Users] Basic marker questions

2010-05-04 Thread Alexandre Dube
Hey Mike, See below : Mike Purvis wrote: My markers are effectively just little square and round tokens. Should I render them using the SVG abilities of Layer.Vector, or should I use a graphics program to make them as PNG icons? It's up to you. Both are okay IMHO. I need to be able to

Re: [OpenLayers-Users] control.SelectFeature

2010-04-20 Thread Alexandre Dube
Hi Sarah, Have you tried to put your wfs2 layer on top of your layers (as the last one added to the map) ? Only the top-most layer can have its features selected, unless you add all the vector layers to the SelectFeature control. Also, you could use only one layer (wfs2) for feature selection

Re: [OpenLayers-Users] control.SelectFeature

2010-04-20 Thread Alexandre Dube
Sarah, Sarah Schuessler wrote: If I use map.addLayers(wfs2) after defining my layer my map is empty (no layers were loaded). You said: unless you add all the vector layers to the SelectFeature control. Also, you could use only one layer (wfs2) for feature selection instead of two. Can I

Re: [OpenLayers-Users] Displaying Base layers by Zoom Scale

2010-04-20 Thread Alexandre Dube
Anthony, Pick a scale denominator (let's say 10). Try adding minScale: 10 to one baseLayer options and maxScale: 10 to an other. Alexandre Odeneho wrote: Alexandre, Can you please give me an example implementation of switching the baselayers based on minscale and maxscales so

Re: [OpenLayers-Users] Expanding the hitbox for selectFeature?

2010-04-15 Thread Alexandre Dube
Hi Phil, You could make the features larger by changing the 'strokeWidth' property of your features. Alexandre Phil Scadden wrote: I am finding that you need incredibly accurate clicking to selectfeature (especially when geometry is a line). Is there away of expanding the hitbox?

Re: [OpenLayers-Users] Displaying Base layers by Zoom Scale

2010-04-15 Thread Alexandre Dube
Anthony, Take a look at the minScale/maxScale and/or minResolution/maxResolution properties of the Layer object. This might be enough to accomplish what you're looking for. See also [1] for an example of use (isn't really used in the example, but looking at the code source will show how to

Re: [OpenLayers-Users] drawFeature control needs two clicks...?

2010-04-15 Thread Alexandre Dube
Chris, Chris Green wrote: I have a situation that I can’t get to the bottom of, and I’m hoping that someone can help me understand it. circle1 = new OpenLayers.Control.DrawFeature(circle1Layer, OpenLayers.Handler.RegularPolygon, {handlerOptions: circle1Options}); Use

Re: [OpenLayers-Users] Load es.js

2010-04-15 Thread Alexandre Dube
Antoni, 1. Add the lang file script src=$PATH_TO_OL/lib/OpenLayers/Lang/es.js/script 2. On init (body onload or whatever you load first) OpenLayers.Lang.setCode(es); That should do it. Regards, Alexandre Vidal, Antoni wrote: Hello list, I didn’t found an example. How can I load es.js

Re: [OpenLayers-Users] Adding a custom marker on map by clicking.

2010-04-15 Thread Alexandre Dube
Hi Ghulam, Subhani Minhas wrote: 1. Specify marker's location. 2. Custom Marker icon Here's a really good example for you to start from : http://dev.openlayers.org/releases/OpenLayers-2.8/examples/styles-unique.html In it, you'll be able to find what you need for 1) and 2). Please

Re: [OpenLayers-Users] drawFeature control needs two clicks...?

2010-04-15 Thread Alexandre Dube
Chris Green wrote: Hi Alex Thanks for the suggestion, it works! ButI can't see how to change the radius of the point that is drawn - is it possible? Yes. Take a look at the following file at line 392 :

Re: [OpenLayers-Users] drawFeature control needs two clicks...?

2010-04-15 Thread Alexandre Dube
Alexandre Dube wrote: see in this acticle (the first gray box, below *Basics*) http://trac.openlayers.org/wiki/Styles -- Alexandre Dubé Mapgears www.mapgears.com ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo

Re: [OpenLayers-Users] Find out about the geometrytype of a layer

2010-04-14 Thread Alexandre Dube
Barbara, I'm not sure what's going on, but I see you're using OpenLayers compressed. Try switching to uncompressed version and set a breakpoint in Vector.js in the addFeatures method (I guess the error is there). Is the feature correctly set to MultiLineString before it's added ? Try to look

Re: [OpenLayers-Users] Find out about the geometrytype of a layer

2010-04-13 Thread Alexandre Dube
Barbara, By default, you can add any kind of geometry type to your vector layer. If you want to limit its types of geometry supported, you could use the 'geometryType' property when creating your layer object, then use this property when you want to automatically set the right handler of

Re: [OpenLayers-Users] PROBLEM GOOGLE + WMS

2010-04-06 Thread Alexandre Dube
Hi, Have you tried with 'sphericalMercator': true ? Alexandre Alessandro Gorreta wrote: I'm trying to do a sample thing. Put a google layer with a WMS layer from mapguide server. All works fine when I show viewer the first time, but when a redraw all WMS layer is placed wrong. If I

Re: [OpenLayers-Users] Strategy/Save and Protocol/???

2010-03-31 Thread Alexandre Dube
Hi Jeff, Jeff Dege wrote: I've not seen any good examples that showed how Strategy.Save would be used. Can anyone point me to one? http://openlayers.org/dev/examples/wfs-protocol-transactions.html And does anybody have any ideas on why Strategy.Save would be a better approach, than

Re: [OpenLayers-Users] vector layer shifts when i zoom or pan the base layer

2010-03-29 Thread Alexandre Dube
Hi, Maybe because of this : http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydontmyvectorfeaturesworkoverGoogleYahooVirtualEarthetc. Regards, Alexandre sapmaster wrote: hi friends, I am using the latest build of Openlayers and asp.net 3.5 I can add points and polygons etc

Re: [OpenLayers-Users] slimming OL

2010-03-09 Thread Alexandre Dube
Hi, You could use OpenLayerer to do so : http://openlayerer.appspot.com/ Regards, Alexandre P Kishor wrote: From Firebug's 'Net' panel, my mixed, OpenLayers, Google Maps test page shows -- Google js -- maps: 4.3 KB main.js: 67.7 KB vp: 661 B %7Bmod_drag,mod_ctrapi%7D.js:

Re: [OpenLayers-Users] Styling a feature through drawFeature's constructor

2010-03-04 Thread Alexandre Dube
Krisitan, You could register a featureadded event to your DrawControl to affect a unique style, something like this (untested) : yourControl.events.on({ featureadded: onPolygonDrawn, scope: this }); function onPolygonDrawn(event) { var feature = event.feature; // create a symbolizer from

Re: [OpenLayers-Users] Caching layerimages by browsers

2010-03-03 Thread Alexandre Dube
Hi, If you're using Apache, you could use mod_expires : http://httpd.apache.org/docs/2.0/mod/mod_expires.html If you're using fixed scales/resolutions in your application, you might be interested in caching the WMS images generated directly on the server using a cache server such as

Re: [OpenLayers-Users] Caching layerimages by browsers

2010-03-03 Thread Alexandre Dube
Carsten, I see. So I guess you can't do much except use untiled WMS layers (to have less GetMap requests) and group the layers using the same service on the same OpenLayers.Layer.WMS object. Regards, Alexandre Dipl. Inf. Carsten Eider wrote: Hi Alexandre, thank you for your hint.

Re: [OpenLayers-Users] Select style for point features

2010-03-02 Thread Alexandre Dube
Olivier, The way to defined your default symbolizer with the applyDefaults method is correct, but you didn't do so with your select symbolizer. In order for a point to be drawn, it needs more than these two properties (like pointRadius for example). Try using applyDefaults there too. Then,

Re: [OpenLayers-Users] Scale dependent layer display

2010-03-01 Thread Alexandre Dube
Hi, Look for minScale/maxScale or minResolution/maxResolution layer options. See an example (look at the source) : http://openlayers.org/dev/examples/zoomLevels.html Regards, Alexandre Luís de Sousa wrote: Hello everyone, I have a few feature layers with a great deal of detail that

Re: [OpenLayers-Users] Selectfeature not firing

2010-02-26 Thread Alexandre Dube
Hey Chris, Chris Green wrote: I can make my map using this second method but it seems more cumbersome and I wonder if I am missing something in the first methodit seems that when I create a vector layer with in-built WFS call as above then the resulting layer is not editable. This

Re: [OpenLayers-Users] Clustering

2010-02-26 Thread Alexandre Dube
James, Have you tried the bbox strategy ? http://openlayers.org/dev/examples/strategy-bbox.html Alexandre James McManus wrote: Hi - I'm using the cluster strategy, witch is great! However, I have problems with the time it takes to render clusters for large data sets at high

Re: [OpenLayers-Users] about text layers

2010-02-24 Thread Alexandre Dube
Karina, Karina Guardado wrote: Hello everybody, Hi but I would like that users could be able to click on one point and get the information without using this text markers. I found information about vector and gml layers with text format but I would like to know how to use them to work

Re: [OpenLayers-Users] Selectfeature not firing

2010-02-24 Thread Alexandre Dube
Chris, Could you share a live example or more code demonstrating your problem ? The code you pasted below doesn't seem to have any issue. Kind regards, Alexandre Chris Green wrote: Hello all Hope someone can help with what is probably a simple problem that I don’t seem to be able to

Re: [OpenLayers-Users] Customised Navigation

2010-02-24 Thread Alexandre Dube
Franz, The Control.Navigation should already do ii and iii, so you basically need to create a control that do stuff on click (simple) and activate it as soon as the Control.Navigation control is activated and the opposite for deactivation. Does that make sense ? Alexandre Franz Okyere

Re: [OpenLayers-Users] text marker question

2010-02-24 Thread Alexandre Dube
Karina, You could register a visibilitychanged event on your Layer.Text object to close all popups on the map when the visibility is changed to false. Alexandre Karina Guardado wrote: Hello, When working with the text layer and click on one marker there is not option to close it just

Re: [OpenLayers-Users] text marker question

2010-02-24 Thread Alexandre Dube
help and maybe you could provide me a code example about using this register event because I have never use this kind of object. thanks again, On Wed, Feb 24, 2010 at 9:52 AM, Alexandre Dube ad...@mapgears.com mailto:ad...@mapgears.com wrote: Karina, You could register

Re: [OpenLayers-Users] Selectfeature not firing

2010-02-24 Thread Alexandre Dube
not work when the cursor is in that position (but it does work if the cursor is anywhere else on the map). So there seems to be some kind of conflict caused by this control. Does this help? Regards, Chris -Original Message- From: Alexandre Dube [mailto:ad...@mapgears.com] Sent

Re: [OpenLayers-Users] OL + database

2010-02-19 Thread Alexandre Dube
ngreen, I agree with Zer. By choosing an existing feature server for your transactions rather than creating your own script for that, you would save a lot of time. Problems you could face could be solved in the chosen server. As I wrote, for simplicity, you could go with TinyOWS (use WFS-T)

Re: [OpenLayers-Users] OL + database

2010-02-18 Thread Alexandre Dube
Hi, I'm not sure if I fully understand your need, but anyway here's a solution that could work for you : put your data in a PostGIS table and have them served by a feature server. Then, create a vector layer in your OpenLayers application that connects to this feature server. PostGIS :

Re: [OpenLayers-Users] Modify object other then from muse click

2010-02-08 Thread Alexandre Dube
Hi, The ModifyFeature control has its own SelectFeature control, so you could do the following when your checkbox is checked : var features = youVectorLayer.selectedFeatures; for(i=0; ifeatures.length; i++) { yourSelectFeatureControl.unselect(features[i]);

Re: [OpenLayers-Users] Modify object other then from muse click

2010-02-08 Thread Alexandre Dube
Poul, you already keep track of your feature when selecting it with your SelectFeature control : selectedfeature = feature; so you don't need to make any loop (you should also deactivate the SelectFeature control too and do the opposite when your checkbox is unchecked): if

Re: [OpenLayers-Users] Selection disappears after zooming

2010-02-08 Thread Alexandre Dube
Poul, If your features have some sort of unique attribute value, you could register a map moveend event to manually keep track of your selected features from this kind of attribute. You could also take a look at the Vector.js getFeatureFromEvent method (looks like it could do what you want).

Re: [OpenLayers-Users] Magnifier window

2010-02-05 Thread Alexandre Dube
function on each node will do what I expect. Of course, I need to anchor this new map in the bottom right corner. Correct me if I'm wrong thanks again Steve *Alexandre Dube ad...@mapgears.com* 04/02/2010 03:36 PM A steve.tout...@inspq.qc.ca cc users@openlayers.org

Re: [OpenLayers-Users] Magnifier window

2010-02-05 Thread Alexandre Dube
result Do you see something wrong thanks Steve *Alexandre Dube ad...@mapgears.com* 04/02/2010 03:36 PM A steve.tout...@inspq.qc.ca cc users@openlayers.org Objet Re: [OpenLayers-Users] Magnifier window Hi Steve, I think you could do

Re: [OpenLayers-Users] Magnifier window

2010-02-05 Thread Alexandre Dube
) this.clonedLayer.setVisibility(this.visibility()) Regards, Alexandre Alexandre Dube wrote: Steve, Instead of relying on the layer's position in the layers array, try to use the following the getLayersByName method (see in my first reply). Tell me if that worked. Alexandre steve.tout...@inspq.qc.ca wrote

Re: [OpenLayers-Users] Magnifier window

2010-02-05 Thread Alexandre Dube
ov_map.getLayersByName(this.name). Instead, when creating your myCloneLayer object, make a reference to it to its original layer : layer.cloneLayer = myCloneLayer. Alexandre thanks Steve *Alexandre Dube ad...@mapgears.com@openlayers.org* Envoyé par : users-boun...@openlayers.org 05/02/2010

Re: [OpenLayers-Users] Magnifier window

2010-02-04 Thread Alexandre Dube
Hi Steve, I think you could do something like that (pseudo-code) : Create your original map Create all your layers and add them to the map Create your ov-map Register a mapmove event to the map to make ov-map follow it For each layer Clone it and add it to ov-map Register a

Re: [OpenLayers-Users] Need help with Fixed Strategy for WFS layers

2010-01-27 Thread Alexandre Dube
Hi, With firebug, grab the url of the getFeature request and so the whole thing manually, something like that (untested and I'm not sure about the .v2 part) : var oFeatures; OpenLayers.loadURL(szURL, '', this, parseResponse); parseResponse = function(response) { var oFormat =

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

2010-01-18 Thread Alexandre Dube
Eric, (I should have looked there first). Thanks, Alexandre Eric Lemoine wrote: On Fri, Jan 15, 2010 at 5:31 PM, Alexandre Dube ad...@mapgears.com wrote: Hi, I noticed something odd when using a ModifyFeature control. If you force the selection of a feature

Re: [OpenLayers-Users] writing and saving text and then displaying it as a wfs layer

2010-01-15 Thread Alexandre Dube
to do now . but problem is can i pass a variable as an attirbute to wfs layer ?? i mean i want to pass as an attribute variable (style_text.label) which contains text tht i am getting. can it b done ??and how ? thanks On Mon, Jan 11, 2010 at 7:01 PM, Alexandre Dube ad

Re: [OpenLayers-Users] Select more than the one Feature

2010-01-15 Thread Alexandre Dube
Tom, Try : sf.select(boxes.features[i]); Alexandre Tom Wasser wrote: Hi all, i have a layer with a lot of Feature.Vectors on it. for (var i = 0; i box_extents.length; i++) { ext = box_extents[i]; bounds = new

Re: [OpenLayers-Users] single line modify

2010-01-15 Thread Alexandre Dube
Wendell, You could register a activate event on your ModifyFeature control to select the first feature of the layer as soon as it gets activated. Something like the following (untested) : yourModifyFeatureControl.events.on({ activate: onModifyControlActivate, scope: yourModifyFeatureControl

Re: [OpenLayers-Users] single line modify

2010-01-15 Thread Alexandre Dube
to click on the navigate icon. Wendell On Fri, Jan 15, 2010 at 08:38:22AM -0500, Alexandre Dube wrote: Wendell, You could register a activate event on your ModifyFeature control to select the first feature of the layer as soon as it gets activated. Something like the following (untested

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

2010-01-15 Thread Alexandre Dube
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

Re: [OpenLayers-Users] writing and saving text and then displaying it as a wfs layer

2010-01-14 Thread Alexandre Dube
to pass as an attribute variable (style_text.label) which contains text tht i am getting. can it b done ??and how ? thanks On Mon, Jan 11, 2010 at 7:01 PM, Alexandre Dube ad...@mapgears.com mailto:ad...@mapgears.com wrote: Alauddin, Please, reply to the list as many other

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

2010-01-12 Thread Alexandre Dube
Well, I'm confident with going for that solution, but if anyone has a better way of doing it please let me know. Thanks, Alexandre Alexandre Dube wrote: Hi, I want to be able to change the default style of the cursor when activating controls. Each control should have its unique cursor

Re: [OpenLayers-Users] writing and saving text and then displaying it as a wfs layer

2010-01-11 Thread Alexandre Dube
-create an SLD for this shape file in which you add text symbolizer and set it to display the field containing you label. but i got stuck at point 3 .dont know how to move things forward. please help thanks Regards Alauddin On Fri, Jan 8, 2010 at 6:28 PM, Alexandre Dube ad...@mapgears.com

[OpenLayers-Users] Cursor style on control activation

2010-01-11 Thread Alexandre Dube
Hi, I want to be able to change the default style of the cursor when activating controls. Each control should have its unique cursor. I want to validate that the way I'd do it is okay. Please comment. I would simply register activate to use OpenLayers.Element.addClass to change the

Re: [OpenLayers-Users] writing and saving text and then displaying it as a wfs layer

2010-01-08 Thread Alexandre Dube
Hi, Take a look at this example [1]. Labels are added to features as symbolizer properties, so you could set one of the feature's attribute as a value for your label by using ${name} (see the same example). Hope this helps, Alexandre [1]

Re: [OpenLayers-Users] problems with popups and selecting features

2010-01-08 Thread Alexandre Dube
Hi Ryan, It would be easier to use the OpenLayers.Layer.Vector object and manually define the Format you're working with (GML and KML in your case) and define SelectFeature controls to be able to click and see popups. See this example [1]. It should contain anything you need to accomplish

[OpenLayers-Users] ModifyFeatureControl - vertices styling

2009-12-16 Thread Alexandre Dube
Hi, Is there a simple way (without changing the code) to have a specific style for the vertices when modifying a feature with the ModifyFeatureControl ? There's such a possibility for the virtualVertices already, but doesn't seem to have any for the normal ones : they always have the

Re: [OpenLayers-Users] ModifyFeatureControl - vertices styling

2009-12-16 Thread Alexandre Dube
soatley wrote: That is the code that styles all my vectors. Depending on the vector type, I style it differently. You can see how in the getVectorType it checks to see if _sketch is not undefined (meaning it is assigned) and if so, it must be a modify vertex. Hope that helps! Yep,

Re: [OpenLayers-Users] WFS-T

2009-11-25 Thread Alexandre Dube
Hi, Just before your commit, you need to copy the your field values to the feature's attributes. They will then be part of the 'insert' request sent to your server. See an example (demo) of what I'm talking about [1]. It uses TinyOWS, but it should be similar to what you're seeking to

Re: [OpenLayers-Users] WFS-T

2009-11-25 Thread Alexandre Dube
/11/25 Alexandre Dube ad...@mapgears.com mailto:ad...@mapgears.com Hi, Just before your commit, you need to copy the your field values to the feature's attributes. They will then be part of the 'insert' request sent to your server. See an example (demo) of what I'm

Re: [OpenLayers-Users] WFS GetFeature

2009-11-19 Thread Alexandre Dube
Hi, stash wrote: Furthermore what do you mean by trunk. I use openlayers 2.8. What is trunk? Regards stash http://trac.openlayers.org/wiki/HowToDownload#GettingtheDevelopmentVersionFromSVN Regards, -- Alexandre Dubé Mapgears www.mapgears.com

Re: [OpenLayers-Users] Layer not shown

2009-11-13 Thread Alexandre Dube
OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.MouseToolbar()); map.addControl(new OpenLayers.Control.MousePosition()); map.zoomToMaxExtent(); But I've recived the same result. Thanks. 2009/11/12 Alexandre Dube ad...@mapgears.com mailto:ad...@mapgears.com Hi

Re: [OpenLayers-Users] Add Point to Map

2009-11-13 Thread Alexandre Dube
Message- From: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] On Behalf Of Alexandre Dube Sent: 13 November 2009 14:04 To: Jones, Christopher Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Add Point to Map Christopher, Look at the following example [1

Re: [OpenLayers-Users] Layer not shown

2009-11-12 Thread Alexandre Dube
Hi Toni, Your data projection is in meters, so you must set it in the OpenLayers.Map object as well. By default, it's in degrees [1]. Plus, the maxExtent should be in meters too (try using the one from your mapfile). If it's still not working, you can try watching the request built from

Re: [OpenLayers-Users] wms redraw layer

2009-11-02 Thread Alexandre Dube
Hi, Try wmsl_layer.redraw(true) to force your layer to be redrawn. Alexandre lorenze...@gis3w.it wrote: Hi list, I found a problem with my 2.8 OL I've to redraw a wms layer, I try with wmsl_layer.redraw() method but nothing happen.. Do I some mistakes? Is there another methods?

[OpenLayers-Users] WMSGetFeatureInfo Format - get bounds

2009-10-29 Thread Alexandre Dube
Hi list, I'm using Format.WMSGetFeatureInfo.read_msGMLOutput() for getFeatureInfo requests. In the response, I can see the bbox of the feature returned [1]. That would be enough to be able to recenter on the feature. The only problem is : vector features created from read_msGMLOutput

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

2009-10-29 Thread Alexandre Dube
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?

Re: [OpenLayers-Users] Featureserver + Openlayers

2009-10-13 Thread Alexandre Dube
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

Re: [OpenLayers-Users] getFeatureInfo event.text

2009-10-13 Thread Alexandre Dube
Monty wrote: Alexandre, I have some news running geoserver in verbose mode, when clicking my object I have : parameter FORMAT is required Oh, then it must be related to this issue (fixed in trunk) : http://trac.openlayers.org/ticket/2201 so you could try trunk or the patch in the

Re: [OpenLayers-Users] Moveend event results in endless loop

2009-10-13 Thread Alexandre Dube
Hi Dragan, Using firebug and putting a breakpoint to your map.zoomToExtent(bbox), what does it looks like ? Alexandre Dragan Podvezanec wrote: Hi all. I have small problem with moveend event: I have two layers, WMS (as base layer), and WFS. Both are served by Geoserver. What I want to do is:

Re: [OpenLayers-Users] Feature hover and highlighting

2009-10-09 Thread Alexandre Dube
Hi Abhi, The 'overFeature' function is not really meant to be overwritten. You should register a featureselected event instead to call your custom function. Also, see this example that demonstrate a nice with to highlight only the hovered feature (see eventListeners property for your

Re: [OpenLayers-Users] getFeatureInfo event.text

2009-10-09 Thread Alexandre Dube
Hi Monty, What is the OpenLayers version you are using ? Could your problem be related to the following ticket ? If so, it's fixed in trunk so either try the trunk version or apply the patch in the ticket : http://trac.openlayers.org/ticket/2201 Regards, Alexandre Monty wrote: Somebody

Re: [OpenLayers-Users] getFeatureInfo event.text

2009-10-09 Thread Alexandre Dube
do to solve this... Any help would be great for me. Merci, Monty Alexandre Dube wrote: Hi Monty, What is the OpenLayers version you are using ? Could your problem be related to the following ticket ? If so, it's fixed in trunk so either try the trunk version or apply

Re: [OpenLayers-Users] grouping markers

2009-10-08 Thread Alexandre Dube
Kenny, Could the LayerSwitcher control be enough for want you want to do ? Alexandre Kenny France wrote: Hi all, Does anybody have an example of how to add / remove groups of markers? Say with a link / checkbox etc? I have 100’s of markers in different categories, and currently i am

Re: [OpenLayers-Users] HELP:some problem

2009-10-08 Thread Alexandre Dube
Hi Zhoujian, Could you show you code or (even better) an small online example of what you're doing ? It would be easier to help. Regards, Alexandre zhoujian_ab wrote: 2009-10-08 zhoujian_ab

Re: [OpenLayers-Users] Capture Events

2009-09-28 Thread Alexandre Dube
Hi, You could listen to the featureadded event of your Vector layer. When the polygon feature is added to the layer, get its coordinates. polygon.events.register(featureadded, polygon, onFeatureAdded); function roadFeatureAdded(event){ var oFeature = event.feature; // add your

Re: [OpenLayers-Users] Erase feature

2009-09-23 Thread Alexandre Dube
, but the test alert of function(e) isn't showed. Any idea? Thank's again. Antoni Vidal Unitat d'Aplicacions SIG-WEB Institut Cartogràfic de Catalunya Parc de Montjuïc, E-08038 Barcelona Tel. (+34) 93 567 15 00 (ext. 3228) www.icc.cat -Missatge original- De: Alexandre Dube [mailto:ad

Re: [OpenLayers-Users] Erase feature

2009-09-21 Thread Alexandre Dube
Hi, Take a look at this ticket : http://trac.openlayers.org/ticket/1882 , see deletefeature.patch. It's a control that does what you want. It's not in the official API though. See an example of use (see the (X) button ) : http://dev4.mapgears.com/bdga-fs/ Hope this helps, Alexandre Vidal,

Re: [OpenLayers-Users] Bounds

2009-09-21 Thread Alexandre Dube
Hi, This should helps : http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#Projections Regards, Alexandre eoinyp wrote: Hi all, Could someone please explain how to define the bounds of a map? I want to centre my map on Ireland when it initialises, but I am having trouble with the

Re: [OpenLayers-Users] Bounds / Projection

2009-09-21 Thread Alexandre Dube
Hi, A small trick to get an extent : use the MousePosition control [1], then set your map extent using the setCenter [2] method or zoomToExtent [3]. [1] http://openlayers.org/dev/examples/mouse-position.html [2]

Re: [OpenLayers-Users] Call Mapfile layer with Openlayers when status ON or OFF

2009-09-09 Thread Alexandre Dube
Hi Paul, You can copy the image url by right clicking on it and open it in a new window. You'll see the request url constructed by OpenLayers and maybe an error message from MapServer. I noticed that you use the map parameter. WMS has no such parameter so it should be part of your main url,

Re: [OpenLayers-Users] How to call a function that sets attributes for features added by drawfeature-control

2009-09-01 Thread Alexandre Dube
Hi Max, Here's an old demo that could help you for some of your needs : http://dev4.mapgears.com/bdga/bdgaWFS-T.html Simply click on a feature. This demonstrate a way to edit feature's attributes in a form. If your data is stored in a DB, you don't need to take care of the id

Re: [OpenLayers-Users] StyleMap for point on polygon edition ?

2009-08-28 Thread Alexandre Dube
Hi Jimmy, Yes, it's possible. See the source code of this example, search for the 'styles' variable : http://openlayers.org/dev/examples/wfs-snap-split.html Regards, Alexandre Jimmy Aumard wrote: Hi list, When a polygon is in edition he as point for modify his form, I want to know if

Re: [OpenLayers-Users] StyleMap for point on polygon edition ?

2009-08-28 Thread Alexandre Dube
with style (external graphic) and I have polygon. It's possible to modify polygons but when it is in modification he have point who take external graphic but I want who take a normal style point. I hope I'm more clear. Thanks Jim 2009/8/28 Alexandre Dube ad...@mapgears.com mailto:ad

Re: [OpenLayers-Users] Save Vector drawings in PostGIS

2009-08-28 Thread Alexandre Dube
Here's an old demo using OpenLayers + TinyOWS for WFS-T. This might give you some ideas. http://dev4.mapgears.com/bdga/bdgaWFS-T.html Alexandre Paul Spencer wrote: Try using tinyows, it is a lightweight c-based cgi that implements WFS with transaction support and is backed by a

Re: [OpenLayers-Users] How to make a drag and drop for markers?

2009-08-24 Thread Alexandre Dube
, Alexandre Sorry for my english :s Cheers Jim 2009/8/24 Eric Lemoine eric.lemo...@camptocamp.com mailto:eric.lemo...@camptocamp.com On Friday, August 21, 2009, Alexandre Dube ad...@mapgears.com mailto:ad...@mapgears.com wrote: Hi, One way to accomplish

Re: [OpenLayers-Users] OpenLayers.Format.WKT.write()

2009-08-24 Thread Alexandre Dube
You should create a ticket and attach a sample feature that holds a geometry collection as an example. Best regards, Alexandre (1) http://faq.openlayers.org/map/how-do-i-edit-the-wiki-or-a-ticket/ (2) http://trac.openlayers.org/wiki/FilingTickets taviroquai wrote: Hi all, WKT.write method

Re: [OpenLayers-Users] zoom to different WMS layers

2009-08-24 Thread Alexandre Dube
You're not using the setCenter method properly. See its documentation : http://dev.openlayers.org/releases/OpenLayers-2.5/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.setCenter I noticed you use OpenLayers 2.5. Just keep in mind that it's an old version and that some cool new

Re: [OpenLayers-Users] How to make a drag and drop for markers?

2009-08-24 Thread Alexandre Dube
along the positive y axis for displacing an external graphic. Never tried this, but I definitively will soon. Best regards, Alexandre I'm not sure I'm clear but it's difficult to explain this in English for my... Sorry Cheers Jim 2009/8/24 Alexandre Dube ad...@mapgears.com mailto:ad

Re: [OpenLayers-Users] Adding new features: WFS-T PostGIS

2009-08-21 Thread Alexandre Dube
Hi Juan, Here's an old OpenLayers demo using WFS-T with TinyOWS (using a PostGIS DB) (1). You have the same example using the MapFish and ExtJS API (2). Click on the ModifyFeature icon then on a feature. See the code for more details. Regards, Alexandre (1)

Re: [OpenLayers-Users] How to make a drag and drop for markers?

2009-08-21 Thread Alexandre Dube
Hi, One way to accomplish this is to use a Vector layer instead of a Marker layer and use a ModifyFeature control do move your points (markers) around. See an example (1). Draw a point, then using the modify feature control, drag and drop your point where you want. Best of luck,

  1   2   3   >