Object layouts can be created using the templateLayoutFactory factory
and text templates.
This example creates a custom hint layout for the geo object.
The layout is set for the geo object via the options.
In order for the hint to automatically shift its position if it goes outside of the map container,
redefine the getShape() method in its layout. This method should return the current size of the hint layout.
Object layouts can be created using the templateLayoutFactory factory and text templates.
This example creates a custom hint layout for the geo object. The layout is set for the geo object via the options.
In order for the hint to automatically shift its position if it goes outside of the map container, redefine the getShape() method in its layout. This method should return the current size of the hint layout.