Upload
raj-singh
View
576
Download
1
Embed Size (px)
Citation preview
© Copyright IBM Corporation 2015
Map-centric mobile apps with Cloudant Geo and LeafletJSRaj SinghDeveloper AdvocateIBM Cloud Data Services
[email protected]: @rajrsinghlinkedin: www.linkedin.com/in/rajrsinghhttp://developer.ibm.com/clouddataservices/
© Copyright IBM Corporation 2015 ©2015 IBM Corporation 
CDSMISSION
To provide the best experience for developers to engage and build with a comprehensive set of rich, integrated data services covering content, data and analytics.
© Copyright IBM Corporation 2015
Our DBaaS
© Copyright IBM Corporation 2015
Components of GIS (Cloudant Geo)
• Spatial Storage Format (GeoJSON)• Spatial Index (R*-tree)• Spatial Query• Spatial Processing (none)
© Copyright IBM Corporation 2015
Components of a great mobile mapping app
Global Basemap
API Query: all restaurants X meters from Y that serve Z
Web client framework
Custom data: restaurants
© Copyright IBM Corporation 2015
Components of a great mobile mapping app
© Copyright IBM Corporation 2015
Basemap tiles• Google, Bing• OpenStreetMap• Mapbox
Web Clients• Leaflet, OpenLayers
• Google, Esri,
Custom data• Cloudant, Esri• PouchDB
Query APIs• OGC standards
• Cloudant, Google, etc.
HTML5/Javascri
pt
© Copyright IBM Corporation 2015
Basemap tiles
© Copyright IBM Corporation 2015
Custom data
• Any DB with GeoJSON output• Sources
– US Census– Data.gov– https://www.ordnancesurvey.co.uk/business-and-government/products/os-opensp
ace/
– http://www.un.org/earthwatch/data/geodata.html
© Copyright IBM Corporation 2015
Web client frameworks
• OpenLayershttp://openlayers.org/
• Leaflet.js / MapBox.jshttp://leafletjs.com/https://www.mapbox.com/mapbox.js/api/v2.2.1/
• Esri ArcGIS API for JavaScripthttps://developers.arcgis.com/javascript/
© Copyright IBM Corporation 2015
FieldWork: Configuring the app
© Copyright IBM Corporation 2015
FieldWork: live demo
https://rajsingh.cloudant.com/fieldwork/_design/fieldwork/index.html
© Copyright IBM Corporation 2015
https://developer.ibm.com/clouddataservices/author/rrsingh/ THANK YOU
© Copyright IBM Corporation 2015© Copyright IBM Corporation 2015
References
• Cloudant: http://www.cloudant.com• GeoJSON: http://geojson.org • Leaflet: http://leafletjs.com • OpenLayers: http://openlayers.org • Mapbox: http://mapbox.com • Mapserver: http://mapserver.org • Geoserver: http://geoserver.org • Esri: http://www.esri.com • Turf: http://turfjs.org