Mobile GIS
               In the browser




Adam Conner: GeoDecisions
Task:


Build a mobile application for hydrant
Challenge:


Don’t make it device specific
Difficult Features:

• GeoLocation
• User Persistence
• Ease for users new to mobile
• gracefully handling loss of
  connectivity
GeoLocation:


navigator.geolocation.getCurrentPosition(show_map);
User Persistence:


  localStorage["bar"] = foo;

   (this only stores strings)
Ease for users:
Make your web app look like a real application.

Add icon to homescreen run application as full
               screen web app


  <link rel="apple-touch-icon" href="bookmark-icon.png" />

 <meta name="apple-mobile-web-app-capable" content="yes" />
Loss of connectivity:


• if(navigator.online){};
• Lots of local storage
• set a timeout on ajax requests and
  store data until navigator.online=true;
Controller
Model
Ajax Request
Demo
Mobile GIS in the Browser (by Adam Conner)
Mobile GIS in the Browser (by Adam Conner)
Mobile GIS in the Browser (by Adam Conner)
Mobile GIS in the Browser (by Adam Conner)
Mobile GIS in the Browser (by Adam Conner)
Mobile GIS in the Browser (by Adam Conner)
Mobile GIS in the Browser (by Adam Conner)
Mobile GIS in the Browser (by Adam Conner)

Mobile GIS in the Browser (by Adam Conner)

Editor's Notes