Hello Marcel,
Try this code too find out if it is a right click.
if(((evt.which) && (evt.which == 3)) ||
((evt.button) && (evt.button == 2))){
//your Code
}
cheers
Max
--
View this message in context:
http://n2.nabble.com/How-to-access-mouse-modifier-during-featureselected-tp4
I think it is a bug in Openlayers. I described it here
if you call the maximizeControl Function after you add the Control and set
spherical Mercator to true it will work.
map.addControl(overview);
overview.maximizeControl();
--
View this message in context:
http://n2.nabble.com/Google-Overvie
Hi frotho,
You have too look at the Vector layer.
In your case
---> var
lastGeometry=vectors.features[(vectors.features.length-1)].geometry;
will give you the last geometry from the layer.
To get the points from an Polygon you have look at the components array.
---> var points=lastGeometry.co
Hello JuKiM,
Try this layer as you overview layer.
var ovMAP = new OpenLayers.Layer.Google("GMap Streets", {
type:G_NORMAL_MAP,
'sphericalMercator': true,
maxExtent: new OpenLayers.Bounds(-20037508,
-20037508,
Hello List,
I think i have found a bug in the OverviewMap Control.
I have a map with an GoogleLayer and an overviewmap which also should
display an Google Layer.
When i open the overview Control the center in the overwiew is not on the
correct position. It is shifted in southeast direction depend
Hello Poul,
I can you try this Code. I think you confuses "s" with "z" in initialize and
":" with"=".
drawControls["modify_wfs_layer"].initialize = function(zielona_wfs) {
this.layer = zielona_wfs;
this.vertices = [];
this.virtualVertices = [];
this.virtualSt
Hello Poul,
the styleinformation of this virtual points (vertices) is set in the
initialize function of the ModifyFeatureControl.
If you want to change the style i think you have to do it there.
/**
* Constructor: OpenLayers.Control.ModifyFeature
* Create a new modify feature contr
Hi Alexandre
I had the same Problem and for me i solved it by extending the Map.js Class.
I created a function wich is called after one Control is activated.
In this function i can change the cursor and deactivate controls on other
panels.
I change the cursor with a command wich looks like this
before calling the setCenter function and
after that register it again.
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.
Thanks for any help.
With kind regard
before calling the setCenter function and
after that register it again.
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.
Thanks for any help.
With kind regards
Max
tyle.display = "none";
return this.div;
},
Is there a better way for solving this Problem?
I need this solution because in our application it is possible to add and
remove WMS layer.
With kind regards
Max Weidemann
--
View this message in context:
http://n2.n
Hi Christopher and Kenneth,
Taking a newer version of Openlayers.js solved the Problem.
Thanks for your help
Max
--
View this message in context:
http://n2.nabble.com/IE-7-8-Openlayers-js-single-File-Problem-tp3573055p3579281.html
Sent from the OpenLayers Users mailing list archive at Nabble.
Hello List,
i have a problem with the single file Libary of Openlayers.
(i use the version linked on the Homepage: "OpenLayers 2.8 -- $Revision:
9492 $")
The Problem is the following:
I try to show some different vectorlayer on a google map.
Some Features of the vectorlayer have labels.
If i us
Hi everybody
i have tested a little bit and have found an solution, but i dont know if it
the best way!
At first i got the geometrycollection feature wich i would like to add a
geometry.
Then i create a new geometrycollection with the geometry of the feature i
had found.
In this new geometry i'm
Hi everybody
my problem is that i dont know how i could at a new geometry to an
GeometryCollection-Feature wich exists in an Vector layer.
i have added the collection to the layer in a way like this:
var gc_geometry = new OpenLayers.Geometry.Collection(
[
new Ope
Hi everybody
I tried loading the openlayers.org sites for nearly 6 hours but the sites
are not found.
Is there a problem with the server??
Has anyone an information when the sites are on again??
Thanks
Max
--
View this message in context:
http://n2.nabble.com/OpenLayers-site-it%27s-down--2009-
Marc Jansen-2 wrote:
>
> Hi Max,
>
> It is possible to add Geometry Collections to Vectorlayers:
>
>
> var gc_geometry = new OpenLayers.Geometry.Collection(
> [
> new OpenLayers.Geometry.Point( ... ),
> new OpenLayers.Geometry.LineString( ... ),
> new OpenLayers.Geometry.Polygo
Dear openlayers users and developers,
I want to know if it is possible to show an geometry collection in an vector
layer?
If it is possible could anyone help me please with my code or tell me what
is the right way for using the geometrycollection??
>>>
18 matches
Mail list logo