Hello,
I tried to use OpenLayers.Class to create a new control. When I run the program, I got an error as
'OpenLayers' is undefined.
The code is like
OpenLayers.Control.ToolTips = OpenLayers.Class(OpenLayers.Control, {
......
},
CLASS_NAME:
"OpenLayers.Control.ToolTips"
});
Thanks,
Yongfeng