admidio
admidio copied to clipboard
Map
Add an map to show:
- user home
- appointments location
- ...
I could implement the "map" parts. for the logic behind what should be shown on the map i need some help. Libs for maps:
- http://openlayers.org/
- http://leafletjs.com/
What is possible:
- add points, lines, polygons, multi-*
- add different background layers
- popups, markers
- draw/create new features
- ...
That sounds like a very good idea.
My first idea would be to show all addresses of role members on a map.
some time ago i have made a first implementation: https://github.com/PPOE/piratemap
i think i should make a new better one. My codestyle is better now^^
I will wait until Leaflet 1.0
is released.
https://www.youtube.com/watch?v=lj4SS1NTqyY
https://github.com/Leaflet/Leaflet/milestones/1.0
After that i will look if Leaflet
or OpenLayers
is better for us
https://github.com/PPOE/admidio/tree/austria/adm_program/modules/map
Leaflet 1.0 is finally released: http://leafletjs.com/2016/09/27/leaflet-1.0-final.html OpenLayers is now 3.18.2: https://github.com/openlayers/ol3/releases/tag/v3.18.2
Have to look in detail in the new leaflet version but think we take it
Things we need (first implementation):
- Address to Coordinate converter (Geolocation service: Nominatim)
- Lib to make requests: https://github.com/rmccue/Requests
- Nominatim API: https://wiki.openstreetmap.org/wiki/Nominatim
- Coordinate Data Field (Text with
,
Separator?) - Map
- Layers: User-Address (for each role?), Event-Location, ...
More?
I like Leafletjs 1.0, it works really good.
Also if you need inspiration for a Nominatim Geocoder: https://github.com/JeroenDeDauw/Maps/blob/master/src/Geocoders/NominatimGeocoder.php .
Show also fotos on map https://www.admidio.org/forum/viewtopic.php?f=20&t=7846
I get a page not found on your project link above. Has it changed?