diff options
author | Gehad <gehadelrobey@gmail.com> | 2014-03-30 22:14:56 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-30 15:52:32 -0700 |
commit | 0cd9d09410e2631d3a47edcae7569e3b3f011cf1 (patch) | |
tree | 7251ebc0a25f063b00cfb10a34f641e0b314304c /worldmap-options.h | |
parent | 7696fbf9cdb6292f487815bffdbc879a178cc73f (diff) | |
download | subsurface-0cd9d09410e2631d3a47edcae7569e3b3f011cf1.tar.gz |
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>
Diffstat (limited to 'worldmap-options.h')
-rw-r--r-- | worldmap-options.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/worldmap-options.h b/worldmap-options.h new file mode 100644 index 000000000..6e7e8728b --- /dev/null +++ b/worldmap-options.h @@ -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 |