|
77 | 77 | <div>
|
78 | 78 | <ClientOnly>
|
79 | 79 | <MapboxMap
|
80 |
| - @mb-created="createdHandler" |
81 |
| - @mb-click="eventHandler" |
82 | 80 | style="height: 400px"
|
83 | 81 | :access-token="accessToken"
|
84 | 82 | map-style="mapbox://styles/mapbox/streets-v11"
|
85 | 83 | :center="mapCenter"
|
86 | 84 | :zoom="zoom"
|
87 |
| - > |
| 85 | + @mb-created="createdHandler" |
| 86 | + @mb-click="eventHandler"> |
88 | 87 | <MapboxImages :sources="iconSources">
|
89 | 88 | <MapboxLayer id="pois" :options="layerOptions" />
|
90 | 89 | </MapboxImages>
|
91 | 90 | <MapboxImage
|
92 |
| - src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/60/Cat_silhouette.svg/400px-Cat_silhouette.svg.png" |
93 | 91 | id="cat"
|
94 |
| - > |
| 92 | + src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/60/Cat_silhouette.svg/400px-Cat_silhouette.svg.png"> |
95 | 93 | <MapboxCluster
|
96 | 94 | data="/earthquakes.json"
|
97 | 95 | unclustered-point-layer-type="symbol"
|
|
123 | 121 | 'icon-image': 'cat',
|
124 | 122 | 'icon-size': 0.25,
|
125 | 123 | },
|
126 |
| - }" |
127 |
| - /> |
| 124 | + }" /> |
128 | 125 | </MapboxImage>
|
129 | 126 | <MapboxGeolocateControl position="top-left" />
|
130 | 127 | <MapboxNavigationControl position="bottom-right" />
|
131 | 128 | <MapboxGeocoder @mb-result="eventHandler" />
|
132 |
| - <MapboxMarker @mb-click="eventHandler" :lng-lat="[lng - 30, lat]" /> |
| 129 | + <MapboxMarker :lng-lat="[lng - 30, lat]" @mb-click="eventHandler" /> |
133 | 130 | <MapboxPopup :lng-lat="[lng, lat]">
|
134 | 131 | <p>Hello world !</p>
|
135 | 132 | </MapboxPopup>
|
|
140 | 137 | <fieldset class="controls__group">
|
141 | 138 | <legend>Longitude</legend>
|
142 | 139 | <input type="text" readonly="readonly" :value="lng" />
|
143 |
| - <input type="range" step="1" min="-100" max="100" v-model="lng" /> |
| 140 | + <input v-model="lng" type="range" step="1" min="-100" max="100" /> |
144 | 141 | </fieldset>
|
145 | 142 | <fieldset class="controls__group">
|
146 | 143 | <legend>Latitude</legend>
|
147 | 144 | <input type="text" readonly="readonly" :value="lat" />
|
148 |
| - <input type="range" step="1" min="-90" max="90" v-model="lat" /> |
| 145 | + <input v-model="lat" type="range" step="1" min="-90" max="90" /> |
149 | 146 | </fieldset>
|
150 | 147 | <fieldset class="controls__group">
|
151 | 148 | <legend>Zoom</legend>
|
152 | 149 | <input type="text" readonly="readonly" :value="zoom" />
|
153 |
| - <input type="range" step="0.1" min="0" max="15" v-model.number="zoom" /> |
| 150 | + <input v-model.number="zoom" type="range" step="0.1" min="0" max="15" /> |
154 | 151 | </fieldset>
|
155 | 152 | </div>
|
156 | 153 | </div>
|
|
0 commit comments