@@ -180,20 +180,20 @@ export function setControls(types: Array<string>) {
180
180
} )
181
181
182
182
// Material design icon
183
- let mdi = 'place '
183
+ let mdi = 'mdi-map-marker-outline '
184
184
185
185
switch ( type . toLowerCase ( ) ) {
186
186
case 'linestring' :
187
- mdi = 'polyline'
187
+ mdi = 'mdi-vector- polyline'
188
188
break ;
189
189
190
190
case 'polygon' :
191
- mdi = 'format_shapes '
191
+ mdi = 'mdi-vector-polygon '
192
192
break ;
193
193
}
194
194
195
195
const control = new Toggle ( {
196
- html : `<i class="material-icons" > ${ mdi } </i>` ,
196
+ html : `<i class="mdi ${ mdi } " > </i>` ,
197
197
title : this . i18n . control [ type . toLowerCase ( ) ] ,
198
198
interaction : draw ,
199
199
active : ( type === geometryType )
@@ -252,7 +252,7 @@ export function setControls(types: Array<string>) {
252
252
} ) ;
253
253
254
254
editbar . addControl ( new Button ( {
255
- html : '<i class="material-icons">file_upload </i>' ,
255
+ html : '<i class="mdi mdi-file-upload"> </i>' ,
256
256
title : this . i18n . control . upload ,
257
257
handleClick : ( ) => {
258
258
dialog . dialog ( 'open' )
@@ -465,7 +465,7 @@ export function setGeolocation(currentMap: Map) {
465
465
466
466
// Control button
467
467
const geolocationCtrl = new Toggle ( {
468
- html : '<i class="material-icons">my_location </i>' ,
468
+ html : '<i class="mdi mdi-crosshairs-gps"> </i>' ,
469
469
title : this . i18n . control . geolocation ,
470
470
active : false ,
471
471
onToggle : ( active : boolean ) => {
0 commit comments