1 |
|
2 |
|
3 | .mapbox-gl-draw_ctrl-bottom-left,
|
4 | .mapbox-gl-draw_ctrl-top-left {
|
5 | margin-left:0;
|
6 | border-radius:0 4px 4px 0;
|
7 | }
|
8 | .mapbox-gl-draw_ctrl-top-right,
|
9 | .mapbox-gl-draw_ctrl-bottom-right {
|
10 | margin-right:0;
|
11 | border-radius:4px 0 0 4px;
|
12 | }
|
13 |
|
14 | .mapbox-gl-draw_ctrl-draw-btn {
|
15 | border-color:rgba(0,0,0,0.9);
|
16 | color:rgba(255,255,255,0.5);
|
17 | width:30px;
|
18 | height:30px;
|
19 | }
|
20 |
|
21 | .mapbox-gl-draw_ctrl-draw-btn.active,
|
22 | .mapbox-gl-draw_ctrl-draw-btn.active:hover {
|
23 | background-color:rgb(0 0 0/5%);
|
24 | }
|
25 | .mapbox-gl-draw_ctrl-draw-btn {
|
26 | background-repeat: no-repeat;
|
27 | background-position: center;
|
28 | }
|
29 |
|
30 | .mapbox-gl-draw_point {
|
31 | background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="m10 2c-3.3 0-6 2.7-6 6s6 9 6 9 6-5.7 6-9-2.7-6-6-6zm0 2c2.1 0 3.8 1.7 3.8 3.8 0 1.5-1.8 3.9-2.9 5.2h-1.7c-1.1-1.4-2.9-3.8-2.9-5.2-.1-2.1 1.6-3.8 3.7-3.8z"/>%3C/svg>');
|
32 | }
|
33 | .mapbox-gl-draw_polygon {
|
34 | background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="m15 12.3v-4.6c.6-.3 1-1 1-1.7 0-1.1-.9-2-2-2-.7 0-1.4.4-1.7 1h-4.6c-.3-.6-1-1-1.7-1-1.1 0-2 .9-2 2 0 .7.4 1.4 1 1.7v4.6c-.6.3-1 1-1 1.7 0 1.1.9 2 2 2 .7 0 1.4-.4 1.7-1h4.6c.3.6 1 1 1.7 1 1.1 0 2-.9 2-2 0-.7-.4-1.4-1-1.7zm-8-.3v-4l1-1h4l1 1v4l-1 1h-4z"/>%3C/svg>');
|
35 | }
|
36 | .mapbox-gl-draw_line {
|
37 | background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="m13.5 3.5c-1.4 0-2.5 1.1-2.5 2.5 0 .3 0 .6.2.9l-3.8 3.8c-.3-.1-.6-.2-.9-.2-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5c0-.3 0-.6-.2-.9l3.8-3.8c.3.1.6.2.9.2 1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5z"/>%3C/svg>');
|
38 | }
|
39 | .mapbox-gl-draw_trash {
|
40 | background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="M10,3.4 c-0.8,0-1.5,0.5-1.8,1.2H5l-1,1v1h12v-1l-1-1h-3.2C11.5,3.9,10.8,3.4,10,3.4z M5,8v7c0,1,1,2,2,2h6c1,0,2-1,2-2V8h-2v5.5h-1.5V8h-3 v5.5H7V8H5z"/>%3C/svg>');
|
41 | }
|
42 | .mapbox-gl-draw_uncombine {
|
43 | background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="m12 2c-.3 0-.5.1-.7.3l-1 1c-.4.4-.4 1 0 1.4l1 1c.4.4 1 .4 1.4 0l1-1c.4-.4.4-1 0-1.4l-1-1c-.2-.2-.4-.3-.7-.3zm4 4c-.3 0-.5.1-.7.3l-1 1c-.4.4-.4 1 0 1.4l1 1c.4.4 1 .4 1.4 0l1-1c.4-.4.4-1 0-1.4l-1-1c-.2-.2-.4-.3-.7-.3zm-7 1c-1 0-1 1-.5 1.5.3.3 1 1 1 1l-1 1s-.5.5 0 1 1 0 1 0l1-1 1 1c.5.5 1.5.5 1.5-.5v-4zm-5 3c-.3 0-.5.1-.7.3l-1 1c-.4.4-.4 1 0 1.4l4.9 4.9c.4.4 1 .4 1.4 0l1-1c.4-.4.4-1 0-1.4l-4.9-4.9c-.1-.2-.4-.3-.7-.3z"/>%3C/svg>');
|
44 | }
|
45 | .mapbox-gl-draw_combine {
|
46 | background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="M12.1,2c-0.3,0-0.5,0.1-0.7,0.3l-1,1c-0.4,0.4-0.4,1,0,1.4l4.9,4.9c0.4,0.4,1,0.4,1.4,0l1-1 c0.4-0.4,0.4-1,0-1.4l-4.9-4.9C12.6,2.1,12.3,2,12.1,2z M8,8C7,8,7,9,7.5,9.5c0.3,0.3,1,1,1,1l-1,1c0,0-0.5,0.5,0,1s1,0,1,0l1-1l1,1 C11,13,12,13,12,12V8H8z M4,10c-0.3,0-0.5,0.1-0.7,0.3l-1,1c-0.4,0.4-0.4,1,0,1.4l1,1c0.4,0.4,1,0.4,1.4,0l1-1c0.4-0.4,0.4-1,0-1.4 l-1-1C4.5,10.1,4.3,10,4,10z M8,14c-0.3,0-0.5,0.1-0.7,0.3l-1,1c-0.4,0.4-0.4,1,0,1.4l1,1c0.4,0.4,1,0.4,1.4,0l1-1 c0.4-0.4,0.4-1,0-1.4l-1-1C8.5,14.1,8.3,14,8,14z"/>%3C/svg>');
|
47 | }
|
48 |
|
49 | .mapboxgl-map.mouse-pointer .mapboxgl-canvas-container.mapboxgl-interactive {
|
50 | cursor: pointer;
|
51 | }
|
52 | .mapboxgl-map.mouse-move .mapboxgl-canvas-container.mapboxgl-interactive {
|
53 | cursor: move;
|
54 | }
|
55 | .mapboxgl-map.mouse-add .mapboxgl-canvas-container.mapboxgl-interactive {
|
56 | cursor: crosshair;
|
57 | }
|
58 | .mapboxgl-map.mouse-move.mode-direct_select .mapboxgl-canvas-container.mapboxgl-interactive {
|
59 | cursor: grab;
|
60 | cursor: -moz-grab;
|
61 | cursor: -webkit-grab;
|
62 | }
|
63 | .mapboxgl-map.mode-direct_select.feature-vertex.mouse-move .mapboxgl-canvas-container.mapboxgl-interactive {
|
64 | cursor: move;
|
65 | }
|
66 | .mapboxgl-map.mode-direct_select.feature-midpoint.mouse-pointer .mapboxgl-canvas-container.mapboxgl-interactive {
|
67 | cursor: cell;
|
68 | }
|
69 | .mapboxgl-map.mode-direct_select.feature-feature.mouse-move .mapboxgl-canvas-container.mapboxgl-interactive {
|
70 | cursor: move;
|
71 | }
|
72 | .mapboxgl-map.mode-static.mouse-pointer .mapboxgl-canvas-container.mapboxgl-interactive {
|
73 | cursor: grab;
|
74 | cursor: -moz-grab;
|
75 | cursor: -webkit-grab;
|
76 | }
|
77 |
|
78 | .mapbox-gl-draw_boxselect {
|
79 | pointer-events: none;
|
80 | position: absolute;
|
81 | top: 0;
|
82 | left: 0;
|
83 | width: 0;
|
84 | height: 0;
|
85 | background: rgba(0,0,0,.1);
|
86 | border: 2px dotted #fff;
|
87 | opacity: 0.5;
|
88 | }
|