Answer the question
In order to leave comments, you need to log in
[[+content_image]]
How to set shape dimensions in presetStorage, etc. for Placemark?
More specific question:
There is a Placemark , it is given preset: 'custom#mypreset'
in the code
MyCircles = ymaps.templateLayoutFactory.createClass '<div class="myicon">$[[options.contentBodyLayout]]</div>'
ymaps.option.presetStorage.add 'custom#mypreset',
hintLayout: null
iconLayout: MyCircles
Answer the question
In order to leave comments, you need to log in
Decision:
ymaps.option.presetStorage.add 'custom#mypreset',
hintLayout: null
iconSize: [66, 26]
iconOffset: [-16, -23]
iconShape: {
type: 'Rectangle',
coordinates: [[-16, -26], [50, 0]]
}
pane: 'overlaps'
iconLayout: MyCircles
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question