google maps - Use numbers instead of alphabet for DirectionsRenderer api Markers -


i display direction on google map markers i'm having trouble change alphabet inside of markers numbers.

my method looks like,

directiondisplay(direction) {   this.directionsrenderer = new google.maps.directionsrenderer({ preserveviewport: true });   this.directionsrenderer.setmap(this.props.map);   return this.directionsrenderer.setdirections(direction); }  

and using it

directionsservice.route({   origin,   destination,   waypoints,   optimizewaypoints: true,   travelmode: this.props.maps.directionstravelmode.driving }, (result, status) => {   if (status == this.props.maps.directionsstatus.ok) {     this.directiondisplay(result);   } else {     console.error(`error fetching directions ${result}`);   } }); 

i tried this.directionsrenderer = new google.maps.directionsrenderer({ preserveviewport: true, markeroptions: {label: '1'} }); '1' overlays on alphabets instead of replacing them.

does know how figure out?

thank you,


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -