Working prototype
This commit is contained in:
22
index.html
22
index.html
@@ -59,8 +59,6 @@ MAPBOX - DRAWING
|
||||
<body>
|
||||
|
||||
<div id="map"></div>
|
||||
|
||||
<!-- Editor parametrů šipky -->
|
||||
<div id="arrow-editor" style="position: absolute; background: white; padding: 10px; border: 1px solid #ccc; display: none; z-index: 1000;">
|
||||
<h3>Arrow Editor</h3>
|
||||
<label>Spline Step: <input id="splineStep" type="number" step="1"></label><br>
|
||||
@@ -69,8 +67,15 @@ MAPBOX - DRAWING
|
||||
<label>Min Value: <input id="minValue" type="number" step="0.1" min="0"></label><br>
|
||||
<label>Width Arrow: <input id="widthArrow" type="number" step="1"></label><br>
|
||||
<label>Length Arrow: <input id="lengthArrow" type="number" step="1"></label><br>
|
||||
|
||||
<h4>Styling</h4>
|
||||
<label>Fill Color: <input id="arrowFillColor" type="color" value="#000000"></label><br>
|
||||
<label>Outline Color: <input id="arrowOutlineColor" type="color" value="#000000"></label><br>
|
||||
<label>Opacity: <input id="arrowOpacity" type="number" min="0" max="1" step="0.1" value="0.6"></label><br>
|
||||
|
||||
<button id="applyArrowChanges">Apply Changes</button>
|
||||
<button id="removeArrow">Remove Arrow</button>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="frontline-editor" style="position: absolute; background: white; padding: 10px; border: 1px solid #ccc; display: none; z-index: 1000;">
|
||||
@@ -89,6 +94,17 @@ MAPBOX - DRAWING
|
||||
<label>Start Size: <input id="protrusionStartSize" type="number" step="100"></label><br>
|
||||
<label>End Size: <input id="protrusionEndSize" type="number" step="100"></label><br>
|
||||
<label>Gap: <input id="protrusionGap" type="number" step="100"></label><br>
|
||||
|
||||
<h4>Styling LeftSide</h4>
|
||||
<label>Fill Color: <input id="frontlineFillColorRight" type="color" value="#000000"></label><br>
|
||||
<label>Outline Color: <input id="frontlineOutlineColorRight" type="color" value="#000000"></label><br>
|
||||
<label>Opacity: <input id="frontlineOpacityRight" type="number" min="0" max="1" step="0.1" value="0.6"></label><br>
|
||||
|
||||
<h4>Styling RightSide</h4>
|
||||
<label>Fill Color: <input id="frontlineFillColorLeft" type="color" value="#000000"></label><br>
|
||||
<label>Outline Color: <input id="frontlineOutlineColorLeft" type="color" value="#000000"></label><br>
|
||||
<label>Opacity: <input id="frontlineOpacityLeft" type="number" min="0" max="1" step="0.1" value="0.6"></label><br>
|
||||
|
||||
<button id="applyFrontlineChanges">Apply Changes</button>
|
||||
<button id="removeFrontline">Remove Frontline</button>
|
||||
</div>
|
||||
@@ -96,9 +112,7 @@ MAPBOX - DRAWING
|
||||
<div id="drawStyleButtons" style="position: absolute; top: 10px; left: 50px; background: white; padding: 5px; z-index: 10;">
|
||||
<button data-style="frontline">Frontline</button>
|
||||
<button data-style="arrow">Arrow</button>
|
||||
<!-- další styly můžeš přidat sem -->
|
||||
</div>
|
||||
<!-- Hlavní JS -->
|
||||
<script type="module" src="Drawing.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user