Representation of maps and objects on a map

YMapsML has elements that let you define map parameters and the visual appearance of objects displayed on a map.

To set map parameters, the repr:View element is used. You can use it to set the map type and viewport.

When displaying YMapsML via the JavaScript API, each geographical object that has geographical and geometric data specified is represented by one or more visual objects: markers, polylines or polygons. The visual appearance of geographical objects is preset, but you can change it by using styles and templates.

Styles let you define or redefine certain parameters for displaying geographical objects, as well as create custom HTML representations using templates. To set styles, use the repr: Style element. For templates, use repr:Template.