Eric Lam wrote:
> Andreas Hocevar wrote:
>> 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.
>>
>>
> Thanks for the info,
>
> Sorry my mistake, I was working from Open Layers 2.4.
>
> hmmm, which means I should probably use the latest from the trunk.
>
> Regards,
> Eric Lam
>
>
--
LISAsoft http://www.lisasoft.com
Level 1, 30 Currie Street
Adelaide SA 5000
Ph: 08 8425 8050
Fax: 08 8425 8099
--
The contents of this email are confidential and may be subject to legal or
professional privilege and copyright. No representation is made that this email
is free of viruses or other defects. If you have received this communication in
error, you may not copy or distribute any part of it or otherwise disclose its
contents to anyone. Please advise the sender of your incorrect receipt of this
correspondence.
-------------------------------------------------------------------------
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