forked from broady/osm-layer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
26 lines (18 loc) · 940 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<style>body { font-family: sans-serif }</style>
<h3><em>A base layer for Google Maps API using OSM tiles.</em></h3>
<p>Tiles graciously provided by OSM (tile.openstreetmap.org)</p>
<p>To use this layer, you must provide attribution to OSM. See:
<a href="http://wiki.openstreetmap.org/wiki/Tile_usage_policy">Tile usage policy</a>
<a href="http://wiki.openstreetmap.org/wiki/Legal_FAQ#I_would_like_to_use_OpenStreetMap_maps._How_should_I_credit_you.3F">How to provide attribution</a>
</p>
<p>Usage:</p>
<pre>
map.mapTypes.set('osm', new OSMBase());
</pre>
<p>You can do this by creating a new OSMBase.Attribution like this:</p>
<pre>
new OSMBase.Attribution(map)
</pre>
<p>The attribution will be shown in the bottom right of the map when the OSM layer is activated.</p>
<p><a href="example.html">Example</a> <a href="https://github.com/broady/osm-layer">Code</a></p>
<iframe width="500" height="500" src="example.html"></iframe>