https://github.com/andrewn/mtk-static-maps
BBC MTK implementation of Google Static Maps API
https://github.com/andrewn/mtk-static-maps
Last synced: about 2 months ago
JSON representation
BBC MTK implementation of Google Static Maps API
- Host: GitHub
- URL: https://github.com/andrewn/mtk-static-maps
- Owner: andrewn
- Created: 2009-09-12T15:32:24.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2009-11-09T22:58:59.000Z (over 16 years ago)
- Last Synced: 2025-01-13T13:31:45.086Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 121 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
MTK Static Maps
===
What is it?
---
2 things:
1. a small bit of javascript to take the same query string parameters as given to the Google Static Maps API and render a map using the BBC's Mapping ToolKit.
2. a tiny Sinatra service to proxy the map to a screenshot tool and to cache the results. This should mean that for every unique URL requested, it will only need to be generated once.
Tests
---
ADD CENTER AND ZOOM TO END OF QUERY STRING OTHERWISE THE MARKERS DON'T APPEAR.
center=40.714728,-73.998672
center=40.714728,-73.998672&zoom=10&size=512x512&maptype=roadmap
center=40.714728,-73.998672&zoom=10&size=512x512&maptype=roadmap
center=40.714728,-73.998672&zoom=10&size=512x512&maptype=roadmap&markers=color:blue|label:S|40.702147,-74.015794
http://localhost/Projects/mtk-static-maps/src/html/test.html?size=512x512&maptype=roadmap&markers=color:blue|label:S|40.702147,-74.015794&markers=color:green|label:G|40.711614,-74.012318&markers=color:red|label:C|40.718217,-73.998284&sensor=false&key=MAPS_API_KEY¢er=40.714728,-73.998672&zoom=10