Re: [OpenLayers-Users] Zoom to feature after mapload

2010-01-27 Thread Marco Scheuble
Hi Herman, maybe you're looking for s.th. like this: get the bounds of a feature: var bounds = features[i].geometry.getBounds(); calculate zoom and zoom to the feature:: var desiredZoom = map.getZoomForExtent(bounds); map.setCenter(bounds.getCenterLonLat(), desiredZoom); for more information lo

Re: [OpenLayers-Users] zoom to feature

2010-01-26 Thread Marco Scheuble
Hi Bart, thank you, it works great! cheers, marco Am 26.01.2010 11:07, schrieb bart...@osgis.nl: > Hi, > > see: > > http://trac.openlayers.org/wiki/Addins/ZoomToFeatures > > Best regards, > Bart > > >> Hi list, >> I wanted to know if there is the posibility of zooming to a feature or >> multi

[OpenLayers-Users] zoom to feature

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

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

2010-01-18 Thread Marco Scheuble
Hi David, For me it works when I do it like this: map.addLayer( new OpenLayers.Layer.WMS( "Niedersachsen WMS", "http://www.geobasisdaten.niedersachsen.de/bestand";, {layers: 'ueb5000_nf,ueb1000_nf,ukn500_nf,dtk100_v_nf'}, {singleTile:true} ) ); cheers, Marco Am 18.01.201

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

2010-01-05 Thread Marco Scheuble
ritten in the save operation. > > I hope it helps, > > Jorge > > Ter, 2010-01-05 às 11:57 +0100, Marco Scheuble escreveu: > >> Hi list, >> >> after selecting a feature and editing its attributes, I want to save the >> changes. >> Unfortunately

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

2010-01-05 Thread Marco Scheuble
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(

Re: [OpenLayers-Users] saving multiple layers

2009-12-17 Thread Marco Scheuble
so I don't need a variable to hold the strategy and I can just create the > layer with a new save strategy > > Cheers Kris > > -Original Message- > From: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] On > Behalf Of Marco Scheuble >

[OpenLayers-Users] saving multiple layers

2009-12-17 Thread Marco Scheuble
Hi list, I have a problem with saving multiple editable VectorLayers. I have three layers: point, line, poly that are editable. For each layer I first tried to take one saveStrategie for all layers, but that didn't work. It only saved the changes of the last defined layer. Then I tried it with

Re: [OpenLayers-Users] WFS, what EPSG use???

2009-10-29 Thread Marco Scheuble
aro.gob.mx>> > GEQ > > > > El jue, 29-10-2009 a las 15:25 +0100, Marco Scheuble escribió: >> Hi Arturo, >> >> I just had a look at your geoserver, >> -> http://www.aplicanet.gob.mx:8080/geoserver/mapPreview.do >> and think, that you have a

Re: [OpenLayers-Users] WFS, what EPSG use???

2009-10-29 Thread Marco Scheuble
Hi Arturo, I just had a look at your geoserver, -> http://www.aplicanet.gob.mx:8080/geoserver/mapPreview.do and think, that you have a problem with your layer(Feature)-settings, because even in the geoserver map-preview, there is nothing shown cheers Marco Arturo Juárez Lima schrieb: > sure, >

Re: [OpenLayers-Users] draw feature in a vector layer

2009-10-27 Thread Marco Scheuble
Hi Iratxe, For WFS-T you have to use geoserver. UMN Mapserver does only support WFS! So, if you see your Features in OL everything is fine with your wfs. Marco Iratxe Lejarreta wrote: > > Hi, > > I'm using OpenLayers with MapServer and Postgis. > I want to draw saved features in a vector

Re: [OpenLayers-Users] objekts created with vectorLayer.addFeature() aren't part of the insertRequest

2009-10-26 Thread Marco Scheuble
ink this should be done automatically, when adding a feature to a layer !? Where can I post this, so that someone can fix it? -Marco Marco Scheuble wrote: > > Hi all, > > the following code adds a new feature to the layer "editableLayer". > The feature is added to the map and

[OpenLayers-Users] objekts created with vectorLayer.addFeature() aren't part of the insertRequest

2009-10-22 Thread Marco Scheuble
Hi all, the following code adds a new feature to the layer "editableLayer". The feature is added to the map and I can see it. But when I save this layer, the added feature isn't sended to the WFS-server! Features, that I additionally add with "OpenLayers.Control.DrawFeature" to this layer, are s

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

2009-10-22 Thread Marco Scheuble
Hi Eric, thanks for your answer. I don't use the trunk version of OL! Why? Will there be savestrategy-events in upcoming versions? cheers, Marco Eric Lemoine-2-2 wrote: > > On Mon, Oct 5, 2009 at 1:24 PM, Marco Scheuble > wrote: >> >> Hi List, >> >>

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

2009-10-05 Thread Marco Scheuble
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 un

Re: [OpenLayers-Users] No WFS is showing

2009-10-05 Thread Marco Scheuble
Hi Mario, it is recommended in ol2.8 to use OpenLayers.Layer.Vector- instead of OpenLayers.Layer.WFS-Objects. for me http://openlayers.org/dev/examples/wfs-protocol-transactions.html this example helped a lot! cheers, marco -- View this message in context: http://n2.nabble.com/No-WFS-is-sho

[OpenLayers-Users] catch the safe.success event

2009-09-16 Thread Marco Scheuble
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', {

[OpenLayers-Users] snapable measureControl

2009-09-08 Thread Marco Scheuble
Hi list, is there a way to combine the snap- and the measureControl, so that I can snap on objects to measure a distance? thanks, Marco -- View this message in context: http://n2.nabble.com/snapable-measureControl-tp3603768p3603768.html Sent from the OpenLayers Users mailing list archive at N

Re: [OpenLayers-Users] OL Zoom Issue - Zoomed in very close, cannot not zoom out

2009-08-18 Thread Marco Scheuble
Hi Paul, for me your coordinates looks strange. If the projection is epsg: 4326, I think you have to take lat lon coords. Instead of using the function map.zoomToExtent(), maybe you can use map.zoomToMaxExtent() Marco Paul Curran-2 wrote: > > Hi, > > > > Been struggling with this probl

Re: [OpenLayers-Users] wms-layer is shifted from the corresponding wfs-layer (EPSG:31467)

2009-08-18 Thread Marco Scheuble
srsName: 'EPSG:31467', url: '/geoserver/wfs', featureNS : 'http://www.openplans.org/topp', featureType: 'pet', geometryName: 'the_geom'})

[OpenLayers-Users] wms-layer is shifted from the corresponding wfs-layer (EPSG:31467)

2009-08-18 Thread Marco Scheuble
Hi Everyone, My problem is the overlay of wms- and wfs-layers of the same data. the wms-layers are shifted 2m south and 0.5m east from the wfs-layers. -> http://tp-work.terragis.de:81/openlayers/ol_versatz.jpg See picture -> http://tp-work.terragis.de:81/openlayers/ol_versatz.html Here is th