|
21 | 21 | <div id="main">
|
22 | 22 | <v-style v-if="visibleWaypoints">
|
23 | 23 | <template v-for="(waypoint) in waypoints">
|
24 |
| -.leaflet-tooltip.{{waypoint.className}} { |
25 |
| - color: {{waypoint.tooltipColor}}; |
26 |
| - border-color: {{waypoint.tooltipColor}}; |
27 |
| -} |
| 24 | + .leaflet-tooltip.{{ waypoint.className }} { |
| 25 | + color: {{ waypoint.tooltipColor }}; |
| 26 | + border-color: {{ waypoint.tooltipColor }}; |
| 27 | + } |
| 28 | + </template> |
| 29 | + </v-style> |
| 30 | + <v-style v-if="visiblePolygons"> |
| 31 | + <template v-for="(polygon) in polygons"> |
| 32 | + .leaflet-tooltip.{{ polygon.className }} { |
| 33 | + color: {{ polygon.fontColor }}; |
| 34 | + border-color: {{ polygon.strokeColor }}; |
| 35 | + } |
28 | 36 | </template>
|
29 | 37 | </v-style>
|
30 |
| - |
31 | 38 | <v-style v-if="visibleAnimals || visibleMobs || visibleVillagers">
|
32 | 39 | <template v-for="(marker) in markers">
|
33 | 40 | <template v-if="marker.color !== undefined">
|
34 |
| -.leaflet-tooltip.{{ marker.key.replaceAll("/", "_") }} { |
35 |
| - border-color: {{ marker.color }}; |
36 |
| -} |
| 41 | + .leaflet-tooltip.{{ marker.key.replaceAll("/", "_") }} { |
| 42 | + border-color: {{ marker.color }}; |
| 43 | + } |
37 | 44 | </template>
|
38 | 45 | </template>
|
39 | 46 | </v-style>
|
|
182 | 189 | v-if="visibleWaypoints"
|
183 | 190 | v-for="(waypoint) in waypoints"
|
184 | 191 | >
|
185 |
| - <l-tooltip :options="{permanent: true, direction: 'center', offset: [0, 43], className: waypoint.className}"> |
| 192 | + <l-tooltip |
| 193 | + :options="{permanent: true, direction: 'center', offset: [0, 43], className: waypoint.className}"> |
186 | 194 | {{ waypoint.name }}
|
187 | 195 | </l-tooltip>
|
188 | 196 | </l-marker>
|
|
215 | 223 |
|
216 | 224 | v-if="visiblePolygons"
|
217 | 225 | v-for="(polygon) in polygons"
|
218 |
| - ></l-polygon> |
| 226 | + > |
| 227 | + <l-tooltip :options="{permanent: true, direction: 'center', offset: [0, 32], className: polygon.className}"> |
| 228 | + {{ polygon.label }} |
| 229 | + </l-tooltip> |
| 230 | + </l-polygon> |
219 | 231 | </l-map>
|
220 | 232 |
|
221 | 233 | <b-collapse :open.sync="settingsVisible"
|
|
0 commit comments