SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Downloaden Sie, um offline zu lesen
OPENLAYERS
Feature Frenzy
tim@planet.com
ahocevar@boundlessgeo.com
eric.lemoine@camptocamp.com
Tile Sources
var map = new ol.Map({layers: [
new ol.layer.Tile({
source: new ol.source.OSM()
})
]});
Render tiles using XYZ, TileJSON, WMTS, MapQuest,
Bing Maps, ArcGIS (new in 3.3), and more.
Support for non-square tiles (3.5). Monitor tile load
events (3.3). Use a prioritized tile queue, configure tile
loading priority.
tiles galore
Interactions
Define how users interact with the map.
Default interactions include:
Double click zoom
Drag pan
Drag rotate
Pinch rotate
Pinch zoom
Mousewheel zoom
Controls
Controls are visual components related to the map.
Default controls:
Zoom
Rotate
Attribution
interaction and control
Vector formats
new ol.source.Vector({
format: new ol.format.GeoJSON(),
url: 'http://example.net/my.geojson'
});
KML, GeoJSON, TopoJSON, WKT, GPX, GML 2 & 3,
WFS 1.1, OSMXML, ICG, Polyline, EsriJSON (new in 3.5)
Transform while parsing
Vector rendering
Geometry simplification
Replay (maintain stroke, symbol size, and fonts)
World wrapped rendering (new in 3.5)
vector rendering
Feature Interaction
Pixel-based Object Detection
Feature hit detection
UTFGrid support (new in 3.1)
Color detection on raster and vector layers (new in 3.2)
hit detection
Styled Features (I)
layer.setStyle(new ol.style.Style({
fill: new ol.style.Fill({
color: 'rgba(255, 255, 255, 0.3)'
}),
stroke: new ol.style.Stroke({
color: '#319FD3'
})
}));
Styled Features (II)
layer.setStyle(function(feature, resolution) {
return [
new ol.style.Style({
image: new ol.style.Icon({
src: 'http://example.com/icon.png',
scale: feature.get('magnitude') / 2
})
})
];
});
Styled Features (III)
layer.setStyle(new ol.style.Style({
image: new ol.style.Circle({
radius: 5,
fill: new ol.style.Fill({color: 'orange'})
}),
geometry: function(feature) {
var coordinates = feature.getGeometry()
.getCoordinates()[0];
return new ol.geom.MultiPoint(coordinates);
}
});
but wait, there's more!
Immediate Rendering
map.on('postcompose', function(event) {
var context = event.vectorContext;
context.setImageStyle(imageStyle);
context.drawPointGeometry(point);
});
bike track
Raster Operations
var raster = new ol.source.Raster({
sources: [imagery, landcover],
operation: function(pixels, data) {
// here you can run operations
// on the input pixels and
// return new pixel values
}
});
flood fill
Feature Editing
OpenLayers 3 provides various Feature Editing tools:
Draw point, line, polygon (and multi)
Draw circle (new in 3.4)
Draw regular polygon (new in 3.6)
Modify, Translate (new in 3.9)
Maintain Topology
Snapping (new in 3.5)
feature editing
API refinements (I)
Simpler vector sources (3.5)
Removal of two way binding (3.5)
Removal of feature overlay (3.7)
API refinements (II)
var source = new ol.source.GeoJSON({
url: 'data/vectors.geojson',
projection: 'EPSG:3857' // Why not EPSG:4326?
});
var source = new ol.source.Vector({
format: new ol.format.GeoJSON(),
url: 'data/vectors.geojson'
});
Upcoming features
Raster reprojection
// Web Mercator
var source = new ol.source.OSM();
var view = new ol.View({
// Korea 2000
projection: 'EPSG:5179',
center: [14229000, 4398000],
zoom: 7
});
Funded by a Boundless client, implemented by
Klokan Technologies
raster reprojection
Vector tiles
var url = 'tileservice/{z}/{x}/{y}.pbf';
var layer = new ol.layer.VectorTile({
source: new ol.source.VectorTile({
format: new ol.format.MVT(),
tileGrid: ol.tilegrid.createXYZ(),
tilePixelRatio: 16,
tileUrlFunction: function(tileCoord) {
return xyz(url, tileCoord);
}
})
});
Funded by Boundless clients
vector tiles
custom builds
Thanks!
http://openlayers.org/

Weitere ähnliche Inhalte

Was ist angesagt?

EGU 2012 ESSI: The FOSS GIS Workbench on the GFZ Load Sharing Facility compu...
EGU 2012 ESSI:  The FOSS GIS Workbench on the GFZ Load Sharing Facility compu...EGU 2012 ESSI:  The FOSS GIS Workbench on the GFZ Load Sharing Facility compu...
EGU 2012 ESSI: The FOSS GIS Workbench on the GFZ Load Sharing Facility compu...
Peter Löwe
 
ACT Sicence Coffee - Alexandre Meurisse
ACT Sicence Coffee - Alexandre MeurisseACT Sicence Coffee - Alexandre Meurisse
ACT Sicence Coffee - Alexandre Meurisse
Advanced-Concepts-Team
 
1. zeros cubicintersectiontouchpad
1. zeros cubicintersectiontouchpad1. zeros cubicintersectiontouchpad
1. zeros cubicintersectiontouchpad
Media4math
 
4. logarithmic functionssliderstouchpad
4. logarithmic functionssliderstouchpad4. logarithmic functionssliderstouchpad
4. logarithmic functionssliderstouchpad
Media4math
 

Was ist angesagt? (20)

EGU 2012 ESSI: The FOSS GIS Workbench on the GFZ Load Sharing Facility compu...
EGU 2012 ESSI:  The FOSS GIS Workbench on the GFZ Load Sharing Facility compu...EGU 2012 ESSI:  The FOSS GIS Workbench on the GFZ Load Sharing Facility compu...
EGU 2012 ESSI: The FOSS GIS Workbench on the GFZ Load Sharing Facility compu...
 
ACT Sicence Coffee - Alexandre Meurisse
ACT Sicence Coffee - Alexandre MeurisseACT Sicence Coffee - Alexandre Meurisse
ACT Sicence Coffee - Alexandre Meurisse
 
Tim Alder
Tim AlderTim Alder
Tim Alder
 
OpenLayers 3
OpenLayers 3OpenLayers 3
OpenLayers 3
 
Big spatial2014 mapreduceweights
Big spatial2014 mapreduceweightsBig spatial2014 mapreduceweights
Big spatial2014 mapreduceweights
 
Multi depth-map raytracing for efficient large-scene reconstruction
Multi depth-map raytracing for efficient large-scene reconstructionMulti depth-map raytracing for efficient large-scene reconstruction
Multi depth-map raytracing for efficient large-scene reconstruction
 
Short-Term Forecasting of Surface Solar Irradiance Based on Meteosat-SEVIRI D...
Short-Term Forecasting of Surface Solar Irradiance Based on Meteosat-SEVIRI D...Short-Term Forecasting of Surface Solar Irradiance Based on Meteosat-SEVIRI D...
Short-Term Forecasting of Surface Solar Irradiance Based on Meteosat-SEVIRI D...
 
Building Location-Aware Apps using Open Source (AnDevCon SF 2014)
Building Location-Aware Apps using Open Source (AnDevCon SF 2014)Building Location-Aware Apps using Open Source (AnDevCon SF 2014)
Building Location-Aware Apps using Open Source (AnDevCon SF 2014)
 
[Paper Presentation] Unbounded High Dynamic Range Photography using a Modulo ...
[Paper Presentation] Unbounded High Dynamic Range Photography using a Modulo ...[Paper Presentation] Unbounded High Dynamic Range Photography using a Modulo ...
[Paper Presentation] Unbounded High Dynamic Range Photography using a Modulo ...
 
1. zeros cubicintersectiontouchpad
1. zeros cubicintersectiontouchpad1. zeros cubicintersectiontouchpad
1. zeros cubicintersectiontouchpad
 
High res integrating socio economic data and biophysical data
High res integrating socio economic data and biophysical dataHigh res integrating socio economic data and biophysical data
High res integrating socio economic data and biophysical data
 
G3m overview
G3m overviewG3m overview
G3m overview
 
Mapreduce
MapreduceMapreduce
Mapreduce
 
Glob3 Mobile. Point Cloud Streaming
Glob3 Mobile. Point Cloud StreamingGlob3 Mobile. Point Cloud Streaming
Glob3 Mobile. Point Cloud Streaming
 
Vectorial Streaming. Como FOSS4G Europe 2015
 Vectorial Streaming. Como  FOSS4G Europe 2015 Vectorial Streaming. Como  FOSS4G Europe 2015
Vectorial Streaming. Como FOSS4G Europe 2015
 
GIS fundamentals - raster
GIS fundamentals - rasterGIS fundamentals - raster
GIS fundamentals - raster
 
Raster processing
Raster processingRaster processing
Raster processing
 
Digital Elevation Models - WUR - Grontmij
Digital Elevation Models - WUR - GrontmijDigital Elevation Models - WUR - Grontmij
Digital Elevation Models - WUR - Grontmij
 
เครื่องบินกระดาษ
เครื่องบินกระดาษเครื่องบินกระดาษ
เครื่องบินกระดาษ
 
4. logarithmic functionssliderstouchpad
4. logarithmic functionssliderstouchpad4. logarithmic functionssliderstouchpad
4. logarithmic functionssliderstouchpad
 

Ähnlich wie OpenLayers Feature Frenzy

Mashup caravan android-talks
Mashup caravan android-talksMashup caravan android-talks
Mashup caravan android-talks
honjo2
 
Bindings: the zen of montage
Bindings: the zen of montageBindings: the zen of montage
Bindings: the zen of montage
Kris Kowal
 
20150703.journal club
20150703.journal club20150703.journal club
20150703.journal club
Hayaru SHOUNO
 
Covering the earth and the cloud the next generation of spatial in sql server...
Covering the earth and the cloud the next generation of spatial in sql server...Covering the earth and the cloud the next generation of spatial in sql server...
Covering the earth and the cloud the next generation of spatial in sql server...
Texas Natural Resources Information System
 

Ähnlich wie OpenLayers Feature Frenzy (20)

Maps
MapsMaps
Maps
 
Pycon2011
Pycon2011Pycon2011
Pycon2011
 
Developing Applications with Microsoft Virtual Earth
Developing Applications with Microsoft Virtual EarthDeveloping Applications with Microsoft Virtual Earth
Developing Applications with Microsoft Virtual Earth
 
Opensource gis development - part 3
Opensource gis development - part 3Opensource gis development - part 3
Opensource gis development - part 3
 
libGDX: Tiled Maps
libGDX: Tiled MapslibGDX: Tiled Maps
libGDX: Tiled Maps
 
You will learn RxJS in 2017
You will learn RxJS in 2017You will learn RxJS in 2017
You will learn RxJS in 2017
 
Mashup caravan android-talks
Mashup caravan android-talksMashup caravan android-talks
Mashup caravan android-talks
 
Rxjs ngvikings
Rxjs ngvikingsRxjs ngvikings
Rxjs ngvikings
 
Geoint2017 training open interfaces - luis bermudez
Geoint2017 training   open interfaces - luis bermudezGeoint2017 training   open interfaces - luis bermudez
Geoint2017 training open interfaces - luis bermudez
 
Kotlin Mullets
Kotlin MulletsKotlin Mullets
Kotlin Mullets
 
HTML5 game dev with three.js - HexGL
HTML5 game dev with three.js - HexGLHTML5 game dev with three.js - HexGL
HTML5 game dev with three.js - HexGL
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plotting
 
Computer Graphics in Java and Scala - Part 1b
Computer Graphics in Java and Scala - Part 1bComputer Graphics in Java and Scala - Part 1b
Computer Graphics in Java and Scala - Part 1b
 
Maps - Part 3 - Transcript.pdf
Maps - Part 3 - Transcript.pdfMaps - Part 3 - Transcript.pdf
Maps - Part 3 - Transcript.pdf
 
Bindings: the zen of montage
Bindings: the zen of montageBindings: the zen of montage
Bindings: the zen of montage
 
20150703.journal club
20150703.journal club20150703.journal club
20150703.journal club
 
Javascript Array map method
Javascript Array map methodJavascript Array map method
Javascript Array map method
 
Reactive programming with RxJS - ByteConf 2018
Reactive programming with RxJS - ByteConf 2018Reactive programming with RxJS - ByteConf 2018
Reactive programming with RxJS - ByteConf 2018
 
Programming with matlab session 6
Programming with matlab session 6Programming with matlab session 6
Programming with matlab session 6
 
Covering the earth and the cloud the next generation of spatial in sql server...
Covering the earth and the cloud the next generation of spatial in sql server...Covering the earth and the cloud the next generation of spatial in sql server...
Covering the earth and the cloud the next generation of spatial in sql server...
 

Kürzlich hochgeladen

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Kürzlich hochgeladen (20)

A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 

OpenLayers Feature Frenzy