Skip to content

Commit

Permalink
leaflet demo 4326
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbarela committed Sep 5, 2018
1 parent 8bc3b49 commit 45bfcd3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 77,610 deletions.
Binary file added docs/leaflet/4326.gpkg
Binary file not shown.
3 changes: 2 additions & 1 deletion docs/leaflet/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" />
<link rel="stylesheet" href="app.css" />
<script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script>
<script src="https://unpkg.com/@ngageoint/leaflet-geopackage@2.0.4/dist/leaflet-geopackage.min.js"></script>
<script src="https://unpkg.com/@ngageoint/leaflet-geopackage@2.0.5/dist/leaflet-geopackage.min.js"></script>

</head>
<body>
<div id="map" class="map"></div>
Expand Down
12 changes: 7 additions & 5 deletions docs/leaflet/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
var map = L.map('map').setView([45, 15], 3);
var map = L.map('map', {
crs: L.CRS.EPSG4326
}).setView([45, 15], 3);

var baseLayer = L.tileLayer('https://osm.geointservices.io/tiles/{z}/{x}/{y}.png', {
attribution: '© <a href="https://www.mapbox.com/map-feedback/">Mapbox</a> © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> <strong><a href="https://www.mapbox.com/map-feedback/" target="_blank">Improve this map</a></strong>'
var baseLayer = L.tileLayer('https://osm.geointservices.io/tiles/default_pc/{z}/{x}/{y}.png', {
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
});
baseLayer.addTo(map);

var tileLayer = L.geoPackageTileLayer({
geoPackageUrl: 'https://ngageoint.github.io/GeoPackage/examples/rivers.gpkg',
layerName: 'rivers_tiles'
geoPackageUrl: './4326.gpkg',
layerName: 'Slate_Canvas_tiles'
}).addTo(map);

tileLayer.on('load', function() {
Expand Down
Loading

0 comments on commit 45bfcd3

Please sign in to comment.