Links

Leaflet: BSD-licensed JavaScript library for interactive maps for desktop and mobile web

Leaflet is a modern, lightweight BSD-licensed JavaScript library for making tile-based interactive maps for both desktop and mobile web browsers, developed by CloudMade to form the core of its next generation JavaScript API.

It is built from the ground up to work efficiently and smoothly on both platforms, utilizing cutting-edge technologies included in HTML5. Its top priorities are usability, performance, small size, A-grade browser support, flexibility and easy to use API. The OOP-based code of the library is designed to be modular, extensible and very easy to understand.

Available map layers

  • Tile layers
  • Polylines, polygons, circles
  • Markers
  • Popups
  • Image overlays
  • WMS layers
  • GeoJSON
  • KML
  • GeoRSS

Interaction features

On desktop browsers

  • Drag panning
  • Scroll wheel zoom
  • Double click zoom
  • Shift-drag zoom to bounding box

On mobile browsers (iOS, Android)

  • Touch-drag panning
  • Multi-touch zoom (iOS only)
  • Double tap zoom
  • Panning inertia

Visual features

  • Panning animation
  • Zooming animation on modern browsers (except IE)
  • Smooth continuous zoom on iOS
  • Tile and popup fade animation
  • Very nice default design for markers and popups

Customization features

  • Pure CSS3 popups and controls for easy restyling
  • A simple interface for implementing custom map layers
  • The same for custom map controls
  • Custom map projections (with EPSG:4326, EPSG:3857 and EPSG:3395 out of the box)

Performance features

  • Hardware acceleration on iOS makes it feel as smooth as native apps
  • Clever tricks to make panning and zooming really smooth
  • Smart polyline/polygon rendering makes it responsive even when displaying objects with thousands of points
  • Modular build system allows you to reduce the size of the library by leaving out the code you don't need

Map controls

  • Zoom buttons
  • Attribution
  • Zoom slider
  • Layer switcher

Browser support

On desktop

  • Firefox 3.6+
  • Chrome
  • Safari 5+
  • Opera 11.11+
  • IE 7–9
  • IE 6 (not perfect but accessible)

On mobile

  • Safari for iOS 3/4+
  • WebKit for Android 2.2+
  • webOS browser
  • Blackberry 6+
  • Windows Phone 7
  • Firefox for Android

http://leaflet.cloudmade.com/

https://github.com/CloudMade/Leaflet

(download)

Filed under  //   geo   javascript   map   mobile   openstreetmap   oss   ui   web  
Posted July 14, 2011 by email 

Grails + Spatial Data using PostgreSQL, PostGIS

PostgreSQL
http://www.postgresql.org/
Downloads for Windows, Linux, Mac, ...
http://www.postgresql.org/download/
 
PostGIS
PostGIS adds support for geographic objects to the PostgreSQL object-relational database. In effect, PostGIS "spatially enables" the PostgreSQL server, allowing it to be used as a backend spatial database for geographic information systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS follows the OpenGIS "Simple Features Specification for SQL" and has been certified as compliant with the "Types and Functions" profile.
http://postgis.refractions.net/

Cheatsheet
http://www.bostongis.com/postgis_quickguide.bqg?outputformat=PDF
 
Hibernate Spatial
Hibernate Spatial is a generic extension to Hibernate for handling geographic data. Hibernate Spatial is open source and licensed, like Hibernate, under the LGPL license.
 
Hibernate Spatial allows you to deal with geographic data in a standardized way. It abstracts away from the specific way your database supports geographic data, and provides a standardized, cross-database interface to geographic data storage and query functions.
 
Hibernate Spatial supports most of the functions of the OGC Simple Feature Specification. Supported databases are: Oracle 10g/11g, Postgresql/Postgis, and MySQL.
http://www.hibernatespatial.org/
 
Hibernate Spatial for PostGIS
http://www.hibernatespatial.org/hibernate-spatial-postgis/source-repository.htm
 
Grails and PostGIS
http://blog.mollusca.ch/2008/10/4/grails-spatial-data-postgis
http://blog.mollusca.ch/2009/5/11/grails-spatial-data-2-0
http://blog.mollusca.ch/2008/10/16/calling-stored-procedures-from-grails
http://www.nabble.com/grails-and-postgis-td19666057.html
 
 
 JTS Topology Suite
 
The JTS Topology Suite is an API of 2D spatial predicates and functions. It has the following design goals:
 
  * JTS conforms to the Simple Features Specification for SQL published by the Open GIS Consortium
  * JTS provides a complete, consistent, robust implementation of fundamental 2D spatial algorithms
  * JTS is fast enough for production use
  * JTS is written in 100% pure JavaTM
  * JTS is open source (under the LGPL license)
http://www.vividsolutions.com/jts/jtshome.htm

Filed under  //   geo   gis   grails   postgres   sptial   sql  
Posted September 16, 2009 by email