Skip to main content

Crate map_expressions

Crate map_expressions 

Source
Expand description

Deterministic map-label selection and collision handling.

The crate turns already-supplied geographic features into normalized screen positions. It does not download map data, choose a legal data license, or replace a full cartographic projection engine.

Structs§

GeoPoint
A validated WGS84-style latitude and longitude pair in degrees.
LocalizedLabel
Localized label text with explicit fallback.
MapDisplay
Deterministic label-layout policy.
MapFeature
A labeled geographic feature and its visible zoom interval.
PlacedLabel
A label selected for display.
ScreenPoint
Normalized screen coordinate with (0, 0) at the top left.
Viewport
Geographic area displayed by a map, including antimeridian-wrapping areas.

Enums§

LabelPriority
Relative importance used when labels collide.
MapError
Invalid map-display input.

Constants§

GSI_MAPS_VECTOR_URL
Official GSI Maps Vector viewer.
GSI_VECTOR_TILE_URL
Official GSI explanation of vector-tile map expression.