GEPS 025: Geography
Contents
Why
Why we need to found another solution ?
The bad things we currently have :
- Bad integration of webkit and gtkmozembed in hpaned => sidebar and bottombar removed
- Hard to communicate between the two parts : the html renderer and gramps
- Sometimes some console messages due to the asynchronysme of these two parts
- If we have no network, the maps can't be shown.
- It depends on :
- mapstraction : We need to have developers with javascript knowledge
- html and javascript : We need to have developers with javascript and html knowledge
- The renderer : webkit or gtkmozembed : The renderer works asynchronously and has no interface with python. We use a subtlety to communicate between the two environments : we change the title of the page and push all information available to gramps.
- Depending on the distribution and the version we can have crashes.
The replacement
- No more html and javascript.
- We can now use sidebar and bottombar without problems.
- I totally rewrote the code and dispatch it in several classes.
- I create a maps directory in the src directory with all map classes and all common stuff for plugins
- In the plugins/view, I have one module per type of map ( like pedigreeview, fanchartview )
- We can use the map even without network ( need many place in the filesystem for tiles )
For the map provider, I had two choices :
gmapcatcher
Totally in python : many problem when I tried to integrate it in gramps. We must rewrite several modules.
No translation available. All must be done : use of _()
We have no marker methods like in googlemaps or openstreetmap, so the bubbles and tips are not available : need to be implemented.
The gmapcatcher license is GPL v2
osmgpsmap
Based on gmapcatcher and totally rewritten in C.
The python interface is available for windows and a majority of distributions :
- ubuntu : osmgpsmap deb package
- fedora : osm-gps-map rpm package
- ...
Relatively easy to use. Like gmapcatcher, we have no marker methods like in googlemaps or openstreetmap So the bubbles and tips are not available : need to be implemented.
The osmgpsmap license is GPL v3
The GEPS 025 to try it
svn co https://gramps.svn.sourceforge.net/svnroot/gramps/branches/geps/gep-025-name geps-025
I currently use osmgpsmap.
I have currently a dozen of available maps.
TODO
What does not work :
- the switch between view : bookmarks problem
- difficulties to select the marker depending on the zoom.
- ...
Do we need to remove the htmlrenderer view ?
Do we need to remove some maps ?
NEXT
Possibility to connect a GPS
Possibility to show tracks
...
Please, comments