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
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
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:/
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
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
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(
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
>
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
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
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,
>
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
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
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
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,
>>
>>
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
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
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', {
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
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
srsName: 'EPSG:31467',
url: '/geoserver/wfs',
featureNS : 'http://www.openplans.org/topp',
featureType: 'pet',
geometryName: 'the_geom'})
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
21 matches
Mail list logo