Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have this code and some of the time,(not always!!), i have a dialogue that get

displayed in the middle of the map:

Google Maps

Map data (c)2012 Google

   var map;
   var vectors;
   var epsg900913 = new OpenLayers.Projection('EPSG:900913');
   var epsg4326 = new OpenLayers.Projection('EPSG:4326');

   function initialize() {
       var control, renderer=OpenLayers.Util.getParameters(window.location.href).renderer;
       renderer= (renderer) ? [renderer] : OpenLayers.Layer.Vector.prototype.renderers;
       // Create the map object
       map = new OpenLayers.Map('map');
        //Create a Google layer
       var gmap = new OpenLayers.Layer.Google(
           "Google Streets", // the default
             {numZoomLevels: 20}
       var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
                "", {layers: 'basic'});

       vectors= new OpenLayers.Layer.Vector(
          "Vector Layer",


       map.addControl(new OpenLayers.Control.LayerSwitcher());
       map.addControl(new OpenLayers.Control.MousePosition());

       control=new OpenLayers.Control.DrawFeature(vectors,OpenLayers.Handler.Path);
       // Zoom to Vancouver, BC
       map.setCenter(new OpenLayers.LonLat(-123.12, 49.28).transform(epsg4326, epsg900913), 13);         

Does anyone know where is this coming from?

Thanks in advance.

share|improve this question
See… and my answer there. – erilem May 27 '12 at 12:11

It's the same behaviour as reported here: How to close watermarks window in QGIS Openlayers plugin?

It's reported here:

and solved here:

So, either try the nightly build of openLayers, wait for next release, or apply the patch yourself.

share|improve this answer
thanks very much – jenia May 23 '12 at 15:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.