|
7 | 7 | <title>Adding an Overlay to the Map</title> |
8 | 8 | <link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" /> |
9 | 9 | <script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script> |
10 | | -<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script> |
11 | | -<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script> |
12 | | -<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script> |
| 10 | + <script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script> |
| 11 | + <script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script> |
| 12 | + <script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script> |
13 | 13 | </head> |
14 | 14 | <body> |
15 | 15 | <h1>Adding an Overlay to the Map</h1> |
16 | | - <p>This example displays a movable map initially centered on the historical centre of <b>Berlin</b> (<i>52.515, °N, 13.405°E</i>) with an overlay of a historical map from 1789 on top of the base map. A public domain <a target="_blank" rel="nofollow" href="http://commons.wikimedia.org/wiki/File:Map_de_berlin_1789_%28georeferenced%29.jpg">image</a> was used as a source, and split it into individual map tiles. Additional tiles are only downloaded when the zoom level or location changes.</p> |
| 16 | + <p>This example displays a movable map initially centered on the historical centre of <b>Berlin</b> (<i>52.515, °N, 13.405°E</i>) with an overlay of a historical map from 1789 on top of the base map. A public domain image was used as a source, and split it into individual map tiles. Additional tiles are only downloaded when the zoom level or location changes.</p> |
17 | 17 | <div id="map" style="width: 600px; height: 400px; background: grey"></div> |
| 18 | + <hr/> |
| 19 | + <h2>Credits</h2> |
| 20 | + <blockquote> |
| 21 | + <code>Wikimedia Commons Images</code><br/> |
| 22 | + <small> |
| 23 | + The tile source is based on <a href="https://commons.wikimedia.org/wiki/File%3AMap_de_berlin_1789_%28georeferenced%29.jpg">https://commons.wikimedia.org/wiki/File%3AMap_de_berlin_1789_%28georeferenced%29.jpg</a><br/> |
| 24 | + Images provided by Wikimedia Commons are under the copyright of their owners.<br/> |
| 25 | + However, almost all content hosted on Wikimedia Commons may be freely reused subject to certain restrictions.<br/> |
| 26 | + (<a href="https://commons.wikimedia.org/wiki/Commons:Reusing_content_outside_Wikimedia">https://commons.wikimedia.org/wiki/Commons:Reusing_content_outside_Wikimedia</a>)<br/> |
| 27 | + </small> |
| 28 | + </blockquote> |
18 | 29 | <script type="text/javascript" src='js/app.js'></script> |
19 | 30 | </body> |
20 | 31 | </html> |
0 commit comments