website_about
This is an old revision of the document!
About
The mapping website at http://maps.ozultimate.com/ was designed and built by Tom Brennan website@ozultimate.com.
Credits
Map layers are © Land and Property Information 2016
Interface uses the following libraries:
- Leaflet by Vladimir Agafonkin and others
- Leaflet.OpacityControls - for the opacity slider
- Leaflet Draw - for adding markers, lines and polygons
- Leaflet.FileLayer by Makina Corpus - for loading KML, GPX and GeoJSON files, including drag and drop on to the map canvas
- toGeoJSON - required by Leaflet.FileLayer
- Leaflet.Save - self authored, depends on
- Filesaver.js by Eli Grey - helps to simplify the save functionality across different browsers
- tokml - allows saving back to KML
- togpx - allows saving back to GPX
- leaflet.mouseCoordinate - for displaying the co-ordinates in the lower right
Some icons are from Font Awesome by Dave Gandy
TODO
- Share map with drawn items via link
- Add names to markers
- Allow editing of layers loaded from file
- Geographic name lookup
Archive
The following versions of the mapping app are presented for others to use/learn from/steal etc. They are all licensed under the MIT License.
- Basic Topo - this is close to the simplest version of a mapping app under Leaflet that's possible. It includes one layer, the LPI Current Topo layer, plus a pointer which displays co-ordinates. Not bad for mobile, since it's much lighter weight than subsequent versions, and only one layer. I made a change to the mouse co-ordinates code to allow a tap on the screen to cause the co-ordinates to change, as there's no mouse or “mouseover” on mobile!
- Two Layer with Opacity - a good all purpose map. Two layers (LPI Current Topo, LPI Imagery), with an opacity slider to move between them. Great for finding passes and canyons.
- Load GPX/KML/GeoJSON Files - as above, but with the ability to drag and drop GPX/KML/GeoJSON files on to the map (or open), and have them displayed as tracks and markers. The map will automatically zoom to the extent of the file. Waypoint names appear in a popup if you click on the marker.
- Create/Edit data - similar to Two Layer with Opacity, but with the ability to create, edit, delete and save markers, lines and polygons using Leaflet.Draw and a plugin I wrote (Leaflet.Save). This allows saving to KML, GPX and GeoJSON, depending on what has been enabled. Polygons display their area when created or edited.
- Map Lookup - as above, but with an alteration to the mouse co-ordinates to include the NSW map name and 6-figure grid reference. The map name uses a grid based lookup, so is not 100% accurate, as there are some maps that don't exactly align with the relevant 1:25k, 1:50k or 1:100k grids.
- Permalink - as above, but with ability to save a link that can be shared. This includes the current zoom, map centre, and any objects that have been drawn on the map (but not including items loaded via the File Load above). [Permalink doesn't seem to work for drawn objects - AA 20160430]
website_about.1461992829.txt.gz · Last modified: 2016/04/30 15:07 by bushwalking