Hello List

I've created a custom toolbar as follows:

OpenLayers.Control.CustomNavToolbar = 
OpenLayers.Class(OpenLayers.Control.Panel, {
     Map : null,
     initialize : function(options) {console.log(Map);}
});

Now I want to add the parameter Map to to the constructor:
var nav = OpenLayers.Control.CustomNavToolbar({Map:map})

On the console.log(Map) I get that object Map is not defined. When I 
call on the other hand console.log(options.Map) I get the actual object.

How can I define the parameter so that I can directly use "Map" instead 
of options.Map?

Thank you very much in advance
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to