Andreas Hocevar / @ahoce
Marc Jansen / @selectoid
FOSS4G 2016
A high-performance, feature-packed library for all your mapping needs.
v3.9.0 | |
v3.18.0 |
var geom = ol.geom.Polygon.fromExtent([-5, -5, 5, 5]);
geom.rotate(Math.PI / 4);
new 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'
}
}]
}
});
new ol.source.ImageArcGISRest({
url: 'http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer'
});
new 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')
)
});
September 2015: 143 kB gzipped, minified from 3.8 MB
August 2016: 140 kB gzipped, minified from 2.9 MB
Our users want mainstream build tools and bundlers. Let's remove the dependency on Closure Library!
Existing Closure Compiler workflows won't break.
Closure Library removal is 98% complete.
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
})
});
The slides of this talk are licensed under CC BY-SA.