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

Filling a polygon with the image

Save as filesEdit on JSFiddle

You can fill polygon, rectangle and circle with a background image. Specify a link to the background image in the fillImageHref option.

Type of the background fill - fillMethod. The option can take one of two values:

  • stretch - the background image stretches to fit the overlay.
  • tile - the background image is repeated without changes in size.