OpenLayers OpenLayers

Changeset 2875

Show
Ignore:
Timestamp:
03/23/07 21:39:49 (2 years ago)
Author:
euzuro
Message:

patch for #556 - give the map object its own unique ID

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Map.js

    r2874 r2875  
    3131        "changebaselayer"], 
    3232 
     33    /** @type String */ 
     34    id: null, 
     35     
    3336    /** @type OpenLayers.Events */ 
    3437    events: null, 
     
    153156        //set the default options 
    154157        this.setOptions(options); 
     158 
     159        this.id = OpenLayers.Util.createUniqueID("OpenLayers.Map_"); 
     160 
    155161 
    156162        this.div = div = OpenLayers.Util.getElement(div);