mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 14:40:28 +00:00
92ee374494
This way the user doesn't need to move the two folders googlemaps and googlesat around in the filesystem. This only works if Subsurface is started from the build directory - it doesn't work when Subsurface is installed (and it doesn't at all address the need to install these files and bundle them as well). I'd consider this a hack to show how the real solution should work. There is one more part of this that is a hack: Marble no longer searches its default data directory; the path we set replaces the Marble system search path. Sadly, Marble doesn't support paths the way Unix thinks of them with multiple directories, separated by ':'. So this means that Marble no longer finds any of its default icons. For most of them that seems fine as I don't think lacking the icons for "manned_landing", "robotic_rover", "unmanned_hard_landing" or the various types of places of worship that Marble supports is necessarily a big issues for Subsurface, but at least the default_location icon seemed important. And since we now need to carry our own, I replaced the boring circle with a tiny dive flag. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
80 lines
3.2 KiB
XML
80 lines
3.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<dgml xmlns="http://edu.kde.org/marble/dgml/2.0">
|
|
<document>
|
|
|
|
<head>
|
|
<name>Google Maps</name>
|
|
<target>earth</target>
|
|
<theme>googlemaps</theme>
|
|
<icon pixmap="preview.png"/>
|
|
<visible>true</visible>
|
|
<description><![CDATA[<p>A <i>global roadmap</i> provided by Google.]]></description>
|
|
<zoom>
|
|
<minimum> 900 </minimum>
|
|
<maximum> 3700 </maximum>
|
|
<discrete> true </discrete>
|
|
</zoom>
|
|
</head>
|
|
|
|
<map bgcolor="#000000">
|
|
<canvas/>
|
|
<target/>
|
|
<layer name="googlemaps" backend="texture" >
|
|
<!-- Let Google Maps rendered tiles expire after one week
|
|
(604800 seconds) -->
|
|
<texture name="map" expire="604800" >
|
|
<sourcedir format="PNG"> earth/googlemaps </sourcedir>
|
|
<storageLayout levelZeroColumns="1" levelZeroRows="1" maximumTileLevel="20" mode="Custom" />
|
|
<projection name="Mercator" />
|
|
<downloadUrl protocol="http" host="mt.google.com" path="/vt/lrys=m@130&hl=de&x={x}&y={y}&z={zoomLevel}&s=Ga" />
|
|
</texture>
|
|
</layer>
|
|
<layer name="standardplaces" backend="geodata">
|
|
<geodata name="cityplacemarks">
|
|
<sourcefile format="KML">cityplacemarks.kml</sourcefile>
|
|
<pick>placemark</pick>
|
|
</geodata>
|
|
<geodata name="baseplacemarks">
|
|
<sourcefile format="KML">baseplacemarks.kml</sourcefile>
|
|
<pick>placemark</pick>
|
|
</geodata>
|
|
<geodata name="elevplacemarks">
|
|
<sourcefile format="KML">elevplacemarks.kml</sourcefile>
|
|
<pick>placemark</pick>
|
|
</geodata>
|
|
<geodata name="otherplacemarks">
|
|
<sourcefile
|
|
format="KML">otherplacemarks.kml</sourcefile>
|
|
<pick>placemark</pick>
|
|
</geodata>
|
|
<geodata name="boundaryplacemarks">
|
|
<sourcefile format="KML">boundaryplacemarks</sourcefile>
|
|
<pick>placemark</pick>
|
|
</geodata>
|
|
</layer>
|
|
</map>
|
|
<settings>
|
|
<property name="coordinate-grid">
|
|
<value>true</value>
|
|
<available>true</available>
|
|
</property>
|
|
<property name="overviewmap">
|
|
<value>true</value>
|
|
<available>true</available>
|
|
</property>
|
|
<property name="compass">
|
|
<value>true</value>
|
|
<available>true</available>
|
|
</property>
|
|
<property name="scalebar">
|
|
<value>true</value>
|
|
<available>true</available>
|
|
</property>
|
|
</settings>
|
|
<legend>
|
|
<section name="coordinate-grid" checkable="true" connect="coordinate-grid" spacing="12">
|
|
<heading>Coordinate Grid</heading>
|
|
</section>
|
|
</legend>
|
|
</document>
|
|
</dgml>
|