Re: [OpenLayers-Users] How to access mouse modifier during "featureselected"

2010-02-07 Thread Max Weidemann
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

Re: [OpenLayers-Users] Google Overviewmap

2010-02-05 Thread Max Weidemann
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

Re: [OpenLayers-Users] Pointlist of Polygon

2010-02-05 Thread Max Weidemann
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

Re: [OpenLayers-Users] Google Overviewmap

2010-02-05 Thread Max Weidemann
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,

[OpenLayers-Users] google overviewmap southeast shift problem

2010-02-05 Thread Max Weidemann
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

Re: [OpenLayers-Users] Style of line which geometry is being changed

2010-02-03 Thread Max Weidemann
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

Re: [OpenLayers-Users] Style of line which geometry is being changed

2010-01-28 Thread Max Weidemann
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

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

2010-01-12 Thread Max Weidemann
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

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

2009-10-22 Thread Max Weidemann
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

[OpenLayers-Users] found little bug NavigationHistory / setBaseLayer

2009-10-22 Thread Max Weidemann
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

Re: [OpenLayers-Users] loading panel update

2009-10-19 Thread Max Weidemann
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

Re: [OpenLayers-Users] IE 7/8 Openlayers.js single File Problem

2009-09-04 Thread Max Weidemann
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.

[OpenLayers-Users] IE 7/8 Openlayers.js single File Problem

2009-09-03 Thread Max Weidemann
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

Re: [OpenLayers-Users] How to handle a GeometryCollection Feature

2009-08-26 Thread Max Weidemann
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

[OpenLayers-Users] How to handle a GeometryCollection Feature

2009-08-25 Thread Max Weidemann
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

[OpenLayers-Users] OpenLayers site it's down? 2009-08-12

2009-08-12 Thread Max Weidemann
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-

Re: [OpenLayers-Users] geometry collection

2009-08-06 Thread Max Weidemann
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

[OpenLayers-Users] geometry collection

2009-08-06 Thread Max Weidemann
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?? >>>