See also TimeMap
Nice examples of success
- http://tiki.org/Lists+of+members+of+all+Teams
- http://tiki.org/Developers+map
- http://demo.tiki.org/showcases_and_experiments/maps/How+Can+I
Work done upto mid-April 2014
The following developments were completed as part of a specific project http://www.naturalaccess.org.uk so that they are available for Tiki 12 onwards.
Proper documentation will be added to doc.tiki.org in due course but these notes summarise the key new features
Please add any comments/suggestions if you are interested in making further contributions:
- allow import of map path/zone tracker data from a file instead of hacking db if a file exists and the existing SVG draw method of data entry is not appropriate - this was originally intended to populate a "Geographic Feature" tracker field - so a check on file size would have been needed but a more flexible method has been used with a Files field so the data is held in a File Gallery.
- work done: from 12.1 a new "Index As Map Layer" option (defaults to No) added to the Files tracker field for an uploaded file (scroll to the end of the Options list to find this new one. A drop down list allows the selection of the file format to be either geoJSON or GPX - however the map projection must (at present) be EPSG:4326. This new capability overcomes the previous limitations with the Geographic Feature field. A tracker should either have the Files field or the Geographic Feature field.
- have more admin control over individual path/zone display characteristics ie line colour, type, thickness etc
- work done: from 12.1 the properties element of the XML-like structured file uploaded to a File Gallery and used in the tracker Files field as discussed above can have a wide range of parameters that can set the stroke-color, stroke-width etc for the individual display object.
- work done: some javascript customisation has also been developed that allows the hard-coded openlayer's dot-dash spacings to be customised
- allow POI's icon positioning to be at different image edge positions - the system used to just position an icon at the centre of the image which is not appropriate for many 'pin' icons
- work done: from 12.1 POI icons now positioned so that the location point is the bottom middle of the 'pin'
- show 'hand' cursor icon when a POI/Zone is hovered over to indicate it is clickable
- work done: from 12.1 this now happens
- have more 'admin' control over what is shown in the POI/Zone pop-up box
- work done: the bubble/dialog (popupstyle parameter options - in map plugin) content could always be highly customised using /templates/object/infobox.tpl and /templates/object/infobox/trackeritem.tpl - and these can be placed in the /templates/style/yourstyle/ folder so that they are just used with your theme and will not be overwritten during an upgrade
- and to control popup width/height etc
- work done: new data-popup-config parameter added so that pop-up width/height can be set
- allow displayed objects to be filtered using checkbox selections
- work done: method developed combining customised modules and a 'helper' javascript that allow custom sets of checkboxes that correspond to tracker field items to be ticked on/off which triggers a map refresh that shows/hides the selected map objects
- investigate how path/zone data in different 'projections' can be used without conversion to Google Transverse Mercator (SRID 900903) by observing more of the OpenLayer options - nothing done here in this work effort other than EPSG:4326 being the default map projection for uploaded path/boundary data
Todo
- http://tiki.org/User+map (clean up all map data which is causing JS error) (Marc)
- Make default be Mapquest OSM to reduce load on OSM servers (Marc)
Questions
- How to make map full page?
- Should we use PluginAppFrame for this?
- What do we do with http://tiki.org/tiki-list_users.php ?
- x,y are incorrect in Tiki Is this fixable or too risky?
Issues on Demo site
Issues on tiki.org
- White page after a user saves their map change: https://tiki.org/tiki-user_preferences.php
- Waiting for a search index rebuild
Bugs
UI improvements
-
coordinates move to somewhere nice (luci)Done - OpenLayers: search address should put point on map (now, it shows general area, and user must click)
- Center: this is where map starts (a picker would be nicer)
- http://demo.tiki.org/maps/All+geolocated+users+with+PluginGoogleMap is a nicer default than http://demo.tiki.org/maps/All+geolocated+users+with+PluginMap
- Try not to conflict with data from other modules (like Shoutbox)
To document
- How does tracker fields 12,13,24 as data shown in the popup?
- Just add as tracker fields popups
Nice to have
- Control the icons on the map
- Get all registered users (ex.: in blue)
- Get all developers (ex.: in red)
- https://wiki.openstreetmap.org/wiki/Nominatim
Cluster
like https://github.com/acanimal/AnimatedCluster/blob/master/AnimatedCluster.js or http://openlayers.org/dev/examples/strategy-cluster.html or http://openflights.org/blog/2009/10/21/customized-openlayers-cluster-strategies/
The TimeMap https://github.com/volpino/openlayers-timeline also supports clusters
MapServer
- Should MapServer support just become a layer?
TimeMap
- Let's add this later: TimeMap
Wishlist for maps
Wishlist for Google Maps
- tiki-admin.php?page=gmap and all Google Maps stuff should be merged into the new system
Interested community members
- Louis-Philippe Huberdeau
- Marc Laporte
- Nelson Ko
- Hardy Haardt
- Geoff Brickell
- you?
Related links
- GeoName
- Maps Visualization
- http://derickrethans.nl/talks/osm-confoo13
- http://tools.geofabrik.de/
- OpenLayers
- http://www.mediawiki.org/wiki/Extension:Semantic_Maps
- http://tiki.org/tiki-directory_browse.php?parent=59
- https://www.ohloh.net/p/compare?project_0=Leaflet&project_1=Mapstraction&project_2=OpenLayers
- http://geocoder-php.org/
- https://www.ohloh.net/p/geoPHP-library
- http://www.geomoose.org/
- http://twit.tv/floss81 Interview with OpenStreetMap founder
- http://stackoverflow.com/questions/925164/openstreetmap-embedding-map-in-webpage-like-google-maps
- http://code.google.com/apis/maps/
- See DCS from TikiFestPorto in 2008
- https://github.com/mbostock/topojson
OpenHub
- OpenStreetMaps
- OpenStreetMap
- Maps
- OpenLayers (interactive slippy map JavaScript gadget)
- Open Layers
- Mapstraction
- Mapserver
- Gmap
- Google Map
- Google Maps
- GoogleMap
- GoogleMaps
- Social Networking via Maps
- Leaflet