mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Exporting a World-Map
This patch adds the world map exporter. - add worldmap-save.c that writes the html to the file - use Google maps v3 API to put the place marks on the map - add worldmap-options.h to contain some settings for the JS which will make it easier for those to be changed - add save HTML action in the mainwindow user interface Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7696fbf9cd
commit
0cd9d09410
7 changed files with 152 additions and 0 deletions
7
worldmap-options.h
Normal file
7
worldmap-options.h
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#ifndef WORLDMAP_OPTIONS_H
|
||||
#define WORLDMAP_OPTIONS_H
|
||||
|
||||
const char* map_options = "center: new google.maps.LatLng(0,0),\n\tzoom: 3,\n\tminZoom: 2,\n\tmapTypeId: google.maps.MapTypeId.SATELLITE\n\t";
|
||||
const char* css = "\n\thtml { height: 100% }\n\tbody { height: 100%; margin: 0; padding: 0 }\n\t#map-canvas { height: 100% }\n";
|
||||
|
||||
#endif// WORLDMAP-OPTIONS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue