Styling pens / control points on a polyline in edit mode

Is there a way to change the style of white squares that are used as default vertex descriptors when the polyline is set to editable: true?

I see that changing the course of the polyline affects these squares of descriptors, but I would like to either change the shape of the descriptor (for example, to a circle), or replace the image.

+6
source share
1 answer

The only way I managed to find is to directly manipulate the DOM elements corresponding to these markers. For example, they can be selected using

$('div').filter(function() { return $(this).css('width') == '11px'; }) 

Probably a more robust approach is to trace the DOM tree starting with the $ ('. Gm-style') element.

+1
source

Source: https://habr.com/ru/post/920445/


All Articles