Companion

object Companion

Bit positions for the woosmap_types styleable attribute.

Convention: keep related families adjacent — the admin_level family (admin_level + admin_level_1/2/3) occupies bits 1-4, settlement / address types follow from bit 5. New flags should slot in next to the family they belong to rather than appending at the high end.

Integer values are an SDK implementation detail; host layouts must use the symbolic form (app:woosmap_types="locality|admin_level_1"). Pinned to res/values/attrs.xml by LocalitiesTypesAttrsTest — that test fails if either side is changed without the other.

Properties

Link copied to clipboard
const val FLAG_ADDRESS: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val FLAG_BOROUGH: Int
Link copied to clipboard
const val FLAG_CITY: Int
Link copied to clipboard
const val FLAG_COUNTRY: Int
Link copied to clipboard
const val FLAG_HAMLET: Int
Link copied to clipboard
const val FLAG_LOCALITY: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val FLAG_QUARTER: Int
Link copied to clipboard
const val FLAG_ROUTE: Int
Link copied to clipboard
const val FLAG_SUBURB: Int
Link copied to clipboard
const val FLAG_TOWN: Int
Link copied to clipboard
const val FLAG_VILLAGE: Int

Functions

Link copied to clipboard

Build a list of LocalitiesTypes from bit flags. Maps each set bit in flags to a LocalitiesTypesEnum via BIT_TO_TYPE.