forked from origo-map/origo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: draw as core control (origo-map#1714)
* Added draw as control * Update stylewindow.js * Refactored code for measure control and added modify function * Update draw.js * Fixes for draw * Lots of stuff * Clean up permalink * Some styling fixes * Lint * Update viewer.js * Fix * stylewindow fix * Styling tweaks * Small fixes for print * Update stylewindow.js * Fix for labels and buffer measure * Forgot about measure in mapstate * Added projection for measures * drawHandler as component * Moved styling to layer level * Added screen/menu button placement * Initial state for save button * Added import layer functionality * Update viewer.js * Update drawtools.js * Unique layer names and new icon * Update draw.js * Fixed scaling when printing * Fix default function * Make group draggable * Fixed bugs
- Loading branch information
Showing
38 changed files
with
3,017 additions
and
715 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
.o-draw-toolbar { | ||
bottom: 0; | ||
left: 50%; | ||
margin-bottom: .5rem !important; | ||
max-width: 80%; | ||
position: relative; | ||
-ms-transform: translate(-50%, 0); | ||
-webkit-transform: translate(-50%, 0); | ||
transform: translate(-50%, 0); | ||
z-index: 10; | ||
} | ||
|
||
.o-draw-stylewindow { | ||
font-family: Arial,sans-serif; | ||
width: 250px; | ||
position:absolute; | ||
right: 1rem; | ||
-ms-transform: translate(0, -50%); | ||
-webkit-transform: translate(0, -50%); | ||
transform: translate(0, -50%); | ||
top:50%; | ||
height: calc(100% - 9rem); | ||
} | ||
|
||
.o-draw-stylewindow input[type="radio"] { | ||
display:none; | ||
} | ||
|
||
.o-draw-stylewindow input[type="radio"] + label span { | ||
display:inline-block; | ||
width:24px; | ||
height:24px; | ||
vertical-align:middle; | ||
cursor:pointer; | ||
-moz-border-radius: 50%; | ||
border-radius: 50%; | ||
box-shadow: 0 0 0 2px white, 0 0 0 4px white; | ||
} | ||
|
||
.o-draw-stylewindow input[type="radio"]:checked + label span{ | ||
box-shadow: 0 0 0 2px white, 0 0 0 4px #ababab; | ||
} | ||
|
||
.o-draw-stylewindow input[type="radio"] ~ label span:hover { | ||
box-shadow: 0 0 0 2px white, 0 0 0 4px #cdcdcd; | ||
} | ||
|
||
.o-draw-stylewindow input[type="radio"] ~ label { | ||
display:inline-block; | ||
vertical-align:middle; | ||
padding:5px; | ||
} | ||
|
||
.o-draw-stylewindow ul li { | ||
float:left; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,4 +114,8 @@ $flex-grow-all: 2; | |
.basis-100 { | ||
flex-basis: 100%; | ||
} | ||
|
||
.small-gap { | ||
gap: 0.2rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.