Skip to content

Commit

Permalink
Test for alternative control position
Browse files Browse the repository at this point in the history
  • Loading branch information
perliedman committed Feb 24, 2014
1 parent 756dc8e commit acbaf47
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions test/position.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<title>Leaflet Control Geocoder</title>

<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" /><![endif]-->
<link rel="stylesheet" href="../Control.Geocoder.css" />

<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet-src.js"></script>
<script src="../Control.Geocoder.js"></script>
<style type="text/css">
body {
margin: 0;
}
#map {
position: absolute;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="map"></div>

<script type="text/javascript">
var map = L.map('map').setView([0, 0], 2);
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
L.control.scale({position:'topleft'}).addTo(map);
L.Control.geocoder({position:'topleft', showResultIcons:true}).addTo(map);
</script>
</body>
</html>

0 comments on commit acbaf47

Please sign in to comment.