[OpenLayers-Users] Best Practices When Using OpenLayers 3 and AngularJS
Bart van den Eijnden
bartvde at boundlessgeo.com
Fri May 29 03:25:01 PDT 2015
Ask on the ol3-dev Google group instead.
Best regards,
Bart
Bart van den Eijnden
Front End Software Engineer | Boundless <http://boundlessgeo.com/>
bartvde at boundlessgeo.com <mailto:bartvde at boundlessgeo.com>
1-877-673-6436 <tel:917-460-7207>
@boundlessgeo <http://twitter.com/boundlessgeo/>
<http://boundlessgeo.com/>
> On 28 May 2015, at 15:38, Justin Leniger <jtleniger at rothwellgroup.com> wrote:
>
> Hello,
>
> I keep running into an inefficiency and it results from the different methodologies used by AngularJS and OpenLayers.
>
> OpenLayers has a very object oriented structure, with getters and setters.
>
> AngularJS tends to prefer primitives and data-binding.
>
>
>
> It would be nice to be able to, for example, use ng-model="myLayer.visible" to 2 way bind some OpenLayers properties to an Angular control, however, OpenLayers hides member variables and prefers getters and setters.
>
> Is there any best practice for dealing with this, or perhaps some sort of wrapper I can create to allow that data-binding again?
>
>
>
> Thanks!
>
> - Justin
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20150529/2385f227/attachment.html>
More information about the Users
mailing list