What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce...

42

Transcript of What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce...

Page 1: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

 

Page 2: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

What's new and cool inOpenLayers

/ /

Andreas Hocevar @ahoceMarc Jansen @selectoid

FOSS4G 2016

Page 3: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Outline(somewhat boring) meta (short)What's new and cool in OpenLayers?What's new and cool in OpenLayers?What's new and cool in OpenLayers?What's next?

Page 4: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

(somewhat boring)

meta(short)

Page 5: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Andreas HocevarOpenLayers core developer andsteering committee memberConsultant for Boundless

[email protected]@ahocevar

@ahoce

Page 6: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Boundless Active leader in the open source

communityHas developed and supportedpowerful software for enterpriseGIS applications since 2002

@boundlessgeo@boundlessgeo

boundlessgeo.com

Page 7: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Marc JansenSince 2007 developer and projectlead @ terrestrisCore developer / PSC memberGeoExtCore developer OpenLayersAuthor "OpenLayers" (German)Speaker & workshop instructor national & internationalOSGeo Foundation CharterMember

[email protected]@marcjansen

@selectoid

Page 8: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

terrestris

Top-notch OpenSource GIS fromBonn, GermanyDevelopment, projects, support &teachingConsulting, implementation,planing & maintenance

@terrestris@terrestrisde

terrestris.de

Page 9: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

What isOpenLayers?

Page 10: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

What is OpenLayers?A high-performance, feature-packed library

for all your mapping needs.—

“openlayers.org, 2016-06-26

OpenSource (BSD)JavaScriptOSGeo project

Page 11: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

OpenLayers…long history

v2.0.0, August 2006v3.0.0, August 2014v3.17.1, July 2016

actively developed & big communitywell documented & huge examples collectionusable & used everywhere

Page 12: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016
Page 13: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

What is cool?

Page 14: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

…things we have tomention:

Many data sources & layer typesInteractions & controlsWorks 100% on mobile devicesRetina/HiDPI support out of the box

Page 15: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Rotation

Simulate

Page 16: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Projections

EPSG:4326 EPSG:3857

Page 17: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Vector rendering tricks

Page 18: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Vector styling

Page 19: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Raster operations

Page 20: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

What is new?

Page 21: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

 

Page 22: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Top 8 contributors sincev3.9.0

4 different companies2 individual contributors7 different countries1 bot

Page 23: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

v3.9.0

v3.18.0

Page 24: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

 

Page 25: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

 

Page 26: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

What is new?

Page 27: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Raster reprojection

EPSG:31466

Page 28: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Vector tiles

Page 29: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Render geometriesanywhere

Page 30: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Rotate geometriesvar geom = ol.geom.Polygon.fromExtent([-5, -5, 5, 5]);geom.rotate(Math.PI / 4);

Page 31: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

CartoDB tile sourcenew ol.source.CartoDB({ account: 'myaccount', config: { 'layers': [{ 'type': 'cartodb', 'options': { 'cartocss_version': '2.1.1', 'cartocss': '#layer { polygon-fill: #F00; }', 'sql': 'select * from european_countries_e where area > 50000' } }] }});

Page 32: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Image ArcGISRest sourcenew ol.source.ImageArcGISRest({ url: 'http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer'});

Page 33: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

OGC �lters for WFSnew ol.format.WFS().writeGetFeature({ srsName: 'EPSG:3857', featureNS: 'http://openstreemap.org', featurePrefix: 'osm', featureTypes: ['water_areas'], outputFormat: 'application/json', filter: ol.format.ogc.filter.and( ol.format.ogc.filter.like('name', 'Mississippi*'), ol.format.ogc.filter.equalTo('waterway', 'riverbank') )});

Page 34: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Other improvements...

Page 35: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Library sizeSeptember 2015: 143 kB gzipped, mini�ed from 3.8 MB

August 2016: 140 kB gzipped, mini�ed from 2.9 MB

Page 36: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016
Page 37: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

September 2015Our users want mainstream build tools andbundlers. Let's remove the dependency on

Closure Library!— OpenLayers devs, FOSS4G 2015, Seoul

Existing Closure Compiler work�ows won't break.

Page 38: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

August 2016Closure Library removal is 98% complete.

Lightweight event system, matrix transforms and classinheritance.No more legacy code for outdated browsers.JavaScript as it was meant to be �.

Page 39: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

What is next?

Page 40: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

var OLMap = require('openlayers/map');var View = require('openlayers/view');var TileLayer = require('openlayers/layer/tile');var OSM = new require('openlayers/source/osm');

var map = new OLMap({ target: 'map', layers: [new TileLayer({ source: OSM })], view: new View({ center: require('ol/proj').fromLonLat([7.0936, 50.7362]), zoom: 2 })});

Page 41: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

Thank you

Questions &comments?

Imprint

Page 42: What's new and cool in OpenLayers · What's new and cool in OpenLayers / / Andreas Hocevar@ahoce Marc Jansen@selectoid FOSS4G 2016

ImprintAuthors

Andreas HocevarBoundless Spatial

[email protected]

Marc Jansenterrestris GmbH & Co. KG

Kölnstr. 99, 53111 Bonn

Germany

[email protected]

License

The slides of this talk are licensed under .CC BY-SA

, , Slides PDF version git repository