mirror of
https://github.com/mapgears/ol3-google-maps.git
synced 2026-01-25 16:50:49 +00:00
51 lines
1.7 KiB
HTML
51 lines
1.7 KiB
HTML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!DOCTYPE HTML>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="robots" content="index, all" />
|
|
<title>OL3-Google-Maps label example</title>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" />
|
|
<link rel="stylesheet" href="../node_modules/openlayers/css/ol.css" type="text/css" />
|
|
<link rel="stylesheet" href="../css/ol3gm.css" type="text/css" />
|
|
<link rel="stylesheet" href="./resources/layout.css" type="text/css" />
|
|
</head>
|
|
<body>
|
|
|
|
<div class="container-fluid">
|
|
<div class="row-fluid">
|
|
<div class="span12">
|
|
<div id="map" class="map"></div>
|
|
</div>
|
|
</div>
|
|
<div class="row-fluid">
|
|
<div class="span12">
|
|
<h4>Label example</h4>
|
|
<p>
|
|
Demonstrates the support of map labels, i.e. vector text on
|
|
the map.
|
|
</p>
|
|
<p>
|
|
The MapLabel library, which is natively included in
|
|
OL3-Google-Maps, takes care of rendering the text labels in
|
|
Google Maps.
|
|
</p>
|
|
|
|
<input id="toggle" type="button" onclick="toggle();"
|
|
value="Toggle Between OL3 and GMAPS" />
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="../node_modules/openlayers/build/ol.js"></script>
|
|
|
|
<!-- GoogleMaps API Key for dev5.mapgears.com -->
|
|
<script type="text/javascript"
|
|
src="https://maps.googleapis.com/maps/api/js?v=3.21&key=AIzaSyCXIGZ41A54812NVcfTIuFS2mQUK-9JYeg"></script>
|
|
|
|
<script src="../dist/ol3gm.js"></script>
|
|
<script src="label.js"></script>
|
|
</body>
|
|
</html>
|