Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit 04db8a79 authored by Gary Allan's avatar Gary Allan
Browse files

Add OpenStreetMap fullscreen widget

parent bd1099f7
No related branches found
No related tags found
No related merge requests found
......@@ -188,6 +188,8 @@ class OpenStreetMap extends Common_functions {
?>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin=""></script>
<link rel="stylesheet" href='https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/leaflet.fullscreen.css' integrity="sha512-Tbna5DrK+N26ZZczWjdHj7BHyU3vUAjA7JsGhIyTM/7jBiy4f4DbiScuLQxaxB51+Gh/+a+Z7AwQmh2FyafjLg==" crossorigin=""/>
<script src='https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js' integrity="sha512-gyvCiKy2sIRwqd5QeTyyeJBTPx5OQdyluEFSIe1KnKDi0DM0w/T+T8iczSYRRcwmMYGVixYL2QGKJ+8XylbyTA==" crossorigin=""></script>
<div style="width:100%; height:<?php print isset($height) ? $height : "600px" ?>;" id="map_overlay">
<div id="osmap" style="width:100%; height:100%;"></div>
......@@ -221,6 +223,7 @@ class OpenStreetMap extends Common_functions {
preferCanvas: true,
attributionControl: true,
zoom: -1,
fullscreenControl: true,
}
var geoJSONOptions = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment