[OpenLayers-Dev] I am working on an Openlayers adapter to the Cesium

Javier Mr javiersdevmail at ymail.com
Tue Jun 12 23:13:15 PDT 2012


Hi,

i really don't know how handy would that be, but keep in mind that as far as i understand a layer has a reference to one map, so if you want to have features drawn in the map and allow switching between openlayers and Cesium you must have two map, add features to both maps and have duplicates of all features and layers. But again not sure if this is true.

On the other hand, i didn't knew that Cesium could switch between 2D and 3D, so maybe that enough.




>________________________________
> De: Jonah Taylor <jktaylo1 at gmail.com>
>Para: Rodney Lorrimar <dev at rodney.id.au> 
>CC: Javier Mr <javiersdevmail at ymail.com>; openlayers-dev at lists.osgeo.org 
>Enviado: Miércoles 13 de junio de 2012 1:28
>Asunto: Re: [OpenLayers-Dev] I am working on an Openlayers adapter to the Cesium
> 
>Hi Javier, Cesium has the capability to switch to a 2D view which is
>also rendered with webgl.  I was planning on creating a method in the
>"Globe" class to switch between the two models.  If you guys would
>like to instead switch back to the original openlayers map, you could
>do that really easily by having two divs on your page with one having
>the openlayers map and the other containing the globe and just toggle
>the visibility on whichever div you need to be shown.
>
>On Tue, Jun 12, 2012 at 4:02 AM, Rodney Lorrimar <dev at rodney.id.au> wrote:
>> On Tuesday, June 12 2012, Javier Mr wrote:
>>> i also think this is very interesting. However, and without having a
>>> look to the code or how the integration is made, i don't think the
>>> Globe should be a base layer. Instaead i concept like 'model' would be
>>> better (in my opinion). A Map would then have a model (2D or 3D) and
>>> then base layers and overlays. This way viewing the globe onr could
>>> change base layer and overlays the same way now is made in 2D.
>>>
>>> But again i haven't look in depth at it, so i migth be saying
>>> something wich makes no sense.
>>
>> Hi Javi,
>>
>> Yes that does make more sense than base layers. So I guess what I want
>> is a way to easily switch it on and off.
>>
>> For my hypothetical app, the user would mostly work in 2D layers and the
>> 3D mode would be a gimmick so the user might more easily overlook other
>> deficiencies in the app. I wouldn't want webgl all the time because it
>> seems to run at 30fps and turns on my cooling fan.
>>
>> I would have 3 base layers -- streets, aerial, bing aeriel. Then I would
>> put a hook in my LayerSwitcher so that when switching to the 3rd layer
>> it changes to the 3D 'model'.
>>
>>
>> Cheers,
>>
>> Rodney
>> _______________________________________________
>> Dev mailing list
>> Dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20120613/d6f5e374/attachment.html>


More information about the Dev mailing list