mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Trying the googlemaps integration
This commit is contained in:
		
							parent
							
								
									c917a99eb2
								
							
						
					
					
						commit
						dfa59f9878
					
				
					 9 changed files with 211 additions and 1 deletions
				
			
		
							
								
								
									
										
											BIN
										
									
								
								googlemaps/0/0/0.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								googlemaps/0/0/0.png
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 159 B | 
							
								
								
									
										80
									
								
								googlemaps/googlemaps.dgml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										80
									
								
								googlemaps/googlemaps.dgml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,80 @@ | |||
| <?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> | ||||
							
								
								
									
										
											BIN
										
									
								
								googlemaps/preview.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								googlemaps/preview.png
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 22 KiB | 
							
								
								
									
										
											BIN
										
									
								
								googlesat/0/0/0.jpg
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								googlesat/0/0/0.jpg
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 9.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								googlesat/bicycle/0/0/0.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								googlesat/bicycle/0/0/0.png
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 191 B | 
							
								
								
									
										130
									
								
								googlesat/googlesat.dgml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										130
									
								
								googlesat/googlesat.dgml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,130 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <dgml xmlns="http://edu.kde.org/marble/dgml/2.0"> | ||||
|     <document> | ||||
| 
 | ||||
|         <head> | ||||
|             <name>Google Satellite</name> | ||||
|             <target>earth</target> | ||||
|             <theme>googlesat</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="googlesat" backend="texture" > | ||||
|                 <!-- Let Google Maps rendered tiles expire after one year | ||||
|                      or 31536000 seconds --> | ||||
|                 <texture name="map" expire="31536000" > | ||||
|                     <sourcedir format="JPG"> earth/googlesat </sourcedir> | ||||
|                     <storageLayout levelZeroColumns="1" levelZeroRows="1" maximumTileLevel="20" mode="Custom" /> | ||||
|                     <projection name="Mercator" /> | ||||
|                     <downloadUrl protocol="http" host="khm.google.com" path="/kh/v=124&hl=de&x={x}&s=&y={y}&z={zoomLevel}&s=Ga" /> | ||||
|                 </texture> | ||||
|                 <texture name="streets" expire="604800" > | ||||
|                     <sourcedir format="PNG"> earth/googlesat/streets </sourcedir> | ||||
|                     <storageLayout levelZeroColumns="1" levelZeroRows="1" maximumTileLevel="20" mode="Custom" /> | ||||
|                     <projection name="Mercator" /> | ||||
|                     <downloadUrl protocol="http" host="mt.google.com" path="/vt/lyrs=h@126&hl=de&x={x}&s=&y={y}&z={zoomLevel}&s=Ga" /> | ||||
|                     <blending name="OverpaintBlending" /> | ||||
|                 </texture> | ||||
|                 <texture name="bicycle" expire="604800" > | ||||
|                     <sourcedir format="PNG"> earth/googlesat/bicycle </sourcedir> | ||||
|                     <storageLayout levelZeroColumns="1" levelZeroRows="1" maximumTileLevel="20" mode="Custom" /> | ||||
|                     <projection name="Mercator" /> | ||||
|                     <downloadUrl protocol="http" host="mt.google.com" path="/vt/lyrs=h@179207685,bike&x={x}&s=&y={y}&z={zoomLevel}&" /> | ||||
|                     <blending name="OverpaintBlending" /> | ||||
|                 </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.kml</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> | ||||
|             <group name="Places"> | ||||
|                 <property name="places"> | ||||
|                     <value>true</value> | ||||
|                     <available>true</available> | ||||
|                 </property> | ||||
|                 <property name="cities"> | ||||
|                     <value>false</value> | ||||
|                     <available>false</available> | ||||
|                 </property> | ||||
|                 <property name="terrain"> | ||||
|                     <value>false</value> | ||||
|                     <available>false</available> | ||||
|                 </property> | ||||
|                 <property name="otherplaces"> | ||||
|                     <value>false</value> | ||||
|                     <available>false</available> | ||||
|                 </property> | ||||
|             </group> | ||||
|             <group name="Texture Layers"> | ||||
|                 <property name="streets"> | ||||
|                     <value>true</value> | ||||
|                     <available>true</available> | ||||
|                 </property> | ||||
|                 <property name="bicycle"> | ||||
|                     <value>false</value> | ||||
|                     <available>true</available> | ||||
|                 </property> | ||||
|             </group> | ||||
|         </settings> | ||||
|         <legend> | ||||
|             <section name="streets" checkable="true" connect="streets" spacing="12"> | ||||
|                 <heading>Transportation</heading> | ||||
|             </section> | ||||
|             <section name="bicycle" checkable="true" connect="bicycle" spacing="12"> | ||||
|                 <heading>Bicycle Routes</heading> | ||||
|             </section> | ||||
|             <section name="coordinate-grid" checkable="true" connect="coordinate-grid" spacing="12"> | ||||
|                 <heading>Coordinate Grid</heading> | ||||
|             </section> | ||||
|             <section name="places" checkable="true" connect="places" spacing="12"> | ||||
|                 <heading>Places of Interest</heading> | ||||
|             </section> | ||||
|         </legend> | ||||
|     </document> | ||||
| </dgml> | ||||
							
								
								
									
										
											BIN
										
									
								
								googlesat/preview.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								googlesat/preview.png
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 28 KiB | 
							
								
								
									
										
											BIN
										
									
								
								googlesat/streets/0/0/0.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								googlesat/streets/0/0/0.png
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 191 B | 
|  | @ -19,7 +19,7 @@ | |||
| GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), loadedDives(0) | ||||
| { | ||||
| 
 | ||||
| 	setMapThemeId("earth/bluemarble/bluemarble.dgml"); | ||||
| 	setMapThemeId("earth/googlesat/googlesat.dgml"); | ||||
| 	//setMapThemeId("earth/openstreetmap/openstreetmap.dgml");
 | ||||
| 	setProjection(Marble::Spherical); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue