Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector tile layer demo #170

Merged
merged 6 commits into from
Feb 10, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions debug/customization/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<h1><a href="..">SMK Debug</a> / Customization</h1>
<ul>
<li><a href="bespoke">Bespoke Tool</a></li>
<li><a href="vector-tile-layer">Vector Tile Layer Demo</a></li>
</ul>
</body>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions debug/customization/vector-tile-layer/assets/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
body {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
padding: 0;

display: flex;
flex-direction: column;
justify-content: stretch;
align-items: stretch;

font-family: Helvetica,Arial,sans-serif;
}

header {
flex-shrink: 0;
border-bottom: 2px solid #fcba19;
background-color: #036;

background-image: url( 'bc-gov-logo-transparent.png' );
background-position: 10px -5px;
background-repeat: no-repeat;

padding-left: 185px;
color: white;
font-size: 30px;
padding-top: 10px;
padding-bottom: 10px;
}

article {
flex-grow: 1;
position: relative;
}

footer {
flex-shrink: 0;
border-top: 2px solid #fcba19;
background-color: #036;
color: white;
padding-top: 2px;
padding-bottom: 2px;
}

#smk-map-frame {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
padding: 0;
}
24 changes: 24 additions & 0 deletions debug/customization/vector-tile-layer/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Vector Tile Layer Demo</title>

<!-- SMK BOOTSTRAP - - - - - - - -->
<script src="../../../dist/smk.js"></script>
<!-- - - - - - - - - - - - - - - -->
<link rel="stylesheet" type="text/css" href="./assets/style.css"/>
</head>

<body>
<header>Vector Tile Layer Demo</header>

<article>
<div id="smk-map-frame"></div>
</article>

<footer>Application constructed by smk-cli at 2022-01-24T19:49:23.423Z</footer>
dgboss marked this conversation as resolved.
Show resolved Hide resolved

<script src="./smk-init.js"></script>
</body>
</html>
124 changes: 124 additions & 0 deletions debug/customization/vector-tile-layer/smk-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"name": "vector_layer_demo",
"viewer": {
"type": "leaflet",
"location": {
"extent": [
-140.80078125000003,
61.62728646147466,
-108.72070312500001,
46.13417004624326
],
"center": [
-124.76074218750003,
51.88072825385896
],
"zoom": 6
},
"baseMap": "StamenTonerLight"
},
"layers": [],
"tools": [
{
"type": "toolbar",
"enabled": true
},
{
"type": "list-menu",
"enabled": true,
"title": "Vector Layer Demo!"
},
{
"type": "pan",
"enabled": true
},
{
"type": "zoom",
"enabled": true
},
{
"type": "about",
"enabled": true,
"title": "About Vector Layer Demo!",
dgboss marked this conversation as resolved.
Show resolved Hide resolved
"position": "list-menu",
"content": "<p>Welcome to SMK!</p><p>My Simple Map Kit application.</p>"
},
{
"type": "layers",
"enabled": true
},
{
"type": "baseMaps",
"enabled": false
},
{
"type": "identify",
"enabled": false,
"showPanel": true,
"showWidget": true,
"style": {
"strokeWidth": 1,
"strokeStyle": "1, 1",
"strokeColor": "#000000",
"strokeOpacity": 0.8,
"fillColor": "#000000",
"fillOpacity": 0.5,
"markerSize": [
20,
20
],
"markerOffset": [
10,
0
]
}
},
{
"type": "search",
"enabled": true
},
{
"type": "coordinate",
"enabled": true
},
{
"type": "measure",
"enabled": false
},
{
"type": "markup",
"enabled": false
},
{
"type": "scale",
"enabled": true
},
{
"type": "minimap",
"enabled": true
},
{
"type": "directions",
"enabled": false
},
{
"type": "location",
"enabled": false
},
{
"type": "select",
"enabled": false
},
{
"type": "geomark",
"geomarkService": {
"url": "https://apps.gov.bc.ca/pub/geomark"
},
"position": "list-menu",
"enabled": false
}
],
"version": "1.0.8",
"createdBy": "Michael Nelson",
dgboss marked this conversation as resolved.
Show resolved Hide resolved
"createdDate": "2022-01-24T19:49:23.423Z"
}
Loading