| Android SDK | 2GIS Documentation


Data source for the map.

This can be a source of traffic data, routes, markers, arbitrary geometric or other map objects. Any map object can have its own properties. The object properties affect which rules and display parameters, described in map styles, are applied to it. Style is a set of parameters and rules for displaying map objects, obtained through the style editor and used for rendering the map.

The object properties can be set:

  • directly for the object;
  • for the data source (all objects added to the source obtain these properties);
  • for the map (all objects added to the map obtain these properties);
  • for the style (all objects to which the style is applied obtain these properties). The list is presented in descending order of priority for applying properties. Even if no data sources are added to the map, the style and map properties still affect the map, since there are special displayable objects such as background.