Version:
Popular examples
Map
Geo objects
Balloon and hint
Controls
Hotspots
Regions
Clustering
GeoQuery
Behaviors and events
Search on a map
Traffic
User's location
Routing
YMapsML
GeoXML
ObjectManager
Modular system
Panoramas
External modules

The layout of the placemark hint

Save as filesEdit on JSFiddle

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.