Openlayers 3 and ES6?

359 views
Skip to first unread message

Viggo Lunde

unread,
Jan 9, 2017, 4:36:25 AM1/9/17
to OpenLayers Dev
Hi
Is it possible to use openlayers with ES6? 
Is there an example? A simple react app?

Best regards
Viggo Lunde

Guillaume Beraudo

unread,
Jan 9, 2017, 5:07:15 AM1/9/17
to OpenLayers Dev on behalf of Viggo Lunde
Hi Viggo,

Yes it works, we are doing it in a private project.
There is also a work in progress https://github.com/camptocamp/ngeo/pull/2158 for ngeo (Angularjs + OL3).

Cheers,

Guillaume

--
You received this message because you are subscribed to the Google Groups "OpenLayers Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openlayers-dev+unsubscribe@googlegroups.com.
To post to this group, send email to openlayers-dev@googlegroups.com.
Visit this group at https://groups.google.com/group/openlayers-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/openlayers-dev/2cfc5e15-82c6-43ca-9e35-27d79b1341a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andreas Hocevar

unread,
Jan 9, 2017, 9:01:25 AM1/9/17
to OpenLayers Dev on behalf of Viggo Lunde
You may want to have a look at https://npmjs.com/package/ol, which
provides ES6 modules and examples for using OpenLayers with mainstream
bundlers.

This is still work in progress, and feedback is welcome. Please post
feedback as comments on GitHub issue
https://github.com/openlayers/openlayers/pull/6302.

Andreas.

On Mon, Jan 9, 2017 at 10:36 AM, Viggo Lunde via OpenLayers Dev
<openlayers-dev+APn2wQcpO-8UYU_v2...@googlegroups.com>
wrote:
> --
> You received this message because you are subscribed to the Google Groups
> "OpenLayers Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to openlayers-de...@googlegroups.com.
> To post to this group, send email to openlay...@googlegroups.com.

Viggo Lunde

unread,
Jan 9, 2017, 10:07:10 AM1/9/17
to OpenLayers Dev
Thank you Andreas.
ol_webpack was exactly what I was looking for.
Got an error with the git clone command, permission denied (publickey).
But the zip-download was good.

Viggo
Reply all
Reply to author
Forward
0 new messages