Skip to content

A docker recipe for MapProxy that will serve Google Maps Satellite in WMTS, WMS, or TMS standard format

Notifications You must be signed in to change notification settings

danielsnider/docker-mapproxy-googlemaps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Maps Satellite + MapProxy

Run MapProxy in a Docker container to proxy Google Maps satellite view into a WMS, TMS, or WMTS tile service.

tldr:

$ docker run -p 8080:8080 -d -t -v ~/mapproxy:/mapproxy danielsnider/mapproxy

Result:

MapProxy Demo

MapProxy Demo

MapProxy documentation: https://mapproxy.org/docs/nightly/tutorial.html

Setup

1.1. Create the MapProxy configuration folder. The cached map tiles will be written to ~/mapproxy/cache_data.

mkdir ~/mapproxy/

1.2 (Optionally) add your own mapproxy.yaml configuration file to override the default of proxying Google Maps satellite view over WMTS, WMS, and TMS protocols.

cp mapproxy.yaml ~/mapproxy/mapproxy.yaml

Run

Start the MapProxy server with ~/mapproxy as a shared volume.

docker run -p 8080:8080 -d -t -v ~/mapproxy:/mapproxy danielsnider/mapproxy

Confirm

Confirm that MapProxy is working by browsing to http://localhost:8080/demo/. Then if you click on "Image-format png" you will get an interactive map in your browser.

You can also see the first map tile by browsing to http://localhost:8080/wmts/gm_layer/gm_grid/0/0/0.png.

Notes

Google Terms & Conditions

In 2013 there was some discussion about Google's Terms & Conditions stating that you are only allowed to access the tiles through Google's API (ie. not MapProxy).

About

A docker recipe for MapProxy that will serve Google Maps Satellite in WMTS, WMS, or TMS standard format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%