2009/1/24 Peter Landgren <peter.talken@telia.com>

Hi,

I have started to use maps in GRAMPS. However, I find the maps used rather useless in certain areas, where street addresses are not available or used. In many rural areas in Sweden, I don't know about this in other countries, street addresses are not used. In stead most places are addressed by the name of the house (farm) and village.

See Eniro maps:

http://kartor.eniro.se/query?&mop=aq&mapstate=7;12.979225349783734;59.66809649073074;s;12.967052799658425;59.67390264483216;12.991397899909042;59.66229033662932;881;793&mapcomp=;;;Oppsj%F6n;;;67194;BRUNSKOG;;;;;12.98445677203607;59.664004706063686;;;;ARVIKA;maps_place.335636.21;0&what=map&searchInMap=2&geo_area=oppsj%F6n&stq=0&pis=0

or Google:

http://maps.google.se/maps?f=q&source=s_q&hl=sv&geocode=&q=oppsj%C3%B6n&sll=59.663796,12.998714&sspn=0.030952,0.085487&ie=UTF8&ll=59.660241,12.984595&spn=0.0155,0.054932&z=15

They show about the save area with a little different zoom.

Would it be possible to select another map service for this? I know that there are in GeoView, but this is in PlaceView.

One little problem with the Eniro maps is that they require coordinates in RT90 in stead of WGS 84, which GRAMPS use. Does anybody know of a python coordinate conversion module suitable for śuch conversion?

BTW: Is it possible to get the coordinates from a Google map? The Eniro maps have something like a magnifier lens, which give you coordinates in WGS 84 or RT90.


In google maps, click on the link icon top left, you see then an url link which contains the latitude and longitude, eg:
http://maps.google.be/maps?f=q&source=s_q&hl=nl&geocode=&q=zweden&sll=51.050675,3.662031&sspn=0.008876,0.023968&ie=UTF8&ll=63.170126,17.252054&spn=0.02549,0.063257&z=14

The ll=63.170126,17.252054
field is what you want.

I see no longer problem to make it possible to change the map that shows. Please do a feature request. It should not be hard to change this based on an ini key.
The ini key could be
mapview = google,openstreetmap
where google,... are defined strings in the module that map to a specific service. The link button in placeview should then become a dropdown iconbox allowing to select the service by the down arrow, click opening the service.
Please do a feature request, as you can code, by all means, start hacking too :-)

Benny

/Peter


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Gramps-devel mailing list
Gramps-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-devel