Hi,

On 8/11/07, Eric Lam <[EMAIL PROTECTED]> wrote:
> OpenLayers.Class
> var Control = OpenLayers.Class( SubclassControl, { ...})
>
> however I can only get OL from the trunk to work if I change the code to
> Control = OpenLayers.Class.create();
> Control = OpenLayers.Class.inherit( SubclassControl, { ...});
> Am I missing something here, is there a easier way for me to use the
> latest version of OL?

Are you sure you are using the latest trunk version? The way of
instantiation you are talking about is deprecated! Soon OpenLayers
will only support OpenLayers.Class(...).

If you look at the Mapbuilder trunk, you can see that I update
OpenLayers.js quite frequently, and I always create it from OpenLayers
trunk. I also keep the Mapbuilder code up to date to follow up their
development. A few weeks ago, I changed all instances of
OpenLayers.Class.create(); OpenLayers.Class.inherit(...) to
OpenLayers.Class(...).

So please check again if you are really using the latest OpenLayers
trunk version.

Regards,
Andreas.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel

Reply via email to