HCMapViewOptions class
(Highmaps) The mapView options control the initial view of the chart, and how projection is set up for raw geoJSON maps (beta as of v9.3).
- Implemented types
Constructors
-
HCMapViewOptions({List<
num> ? center, dynamic fitToGeometry, HCMapViewInsetOptions? insetOptions, dynamic insets, num? maxZoom, dynamic padding, dynamic projection, num? zoom}) -
const
Properties
-
center
→ List<
num> ? -
(Highmaps) The center of the map in terms of longitude and latitude. For preprojected maps (like the GeoJSON files in Map Collection v1.x), the units are projected x and y units.
final
- fitToGeometry → dynamic
-
(Highmaps) Fit the map to a geometry object consisting of individual points or polygons. This is practical for responsive maps where we want to focus on a specific area regardless of map size - unlike setting
centerandzoom, where the view doesn't scale with different map sizes.final - hashCode → int
-
The hash code for this object.
no setterinherited
- insetOptions → HCMapViewInsetOptions?
-
(Highmaps) Generic options for the placement and appearance of map insets like non-contiguous territories.
final
- insets → dynamic
-
(Highmaps) The individual MapView insets, typically used for non-contiguous areas of a country. Each item inherits from the generic
insetOptions.final - maxZoom → num?
-
(Highmaps) Prevents the end user from zooming too far in on the map. See zoom.
final
- padding → dynamic
-
(Highmaps) The padding inside the plot area when auto fitting to the map bounds. A number signifies pixels, and a percentage is relative to the plot area size.
final
- projection → dynamic
-
(Highmaps) The projection options allow applying client side projection to a map given in geographic coordinates, typically from TopoJSON or GeoJSON.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- zoom → num?
-
(Highmaps) The zoom level of a map. Higher zoom levels means more zoomed in. An increase of 1 zooms in to a quarter of the viewed area (half the width and height). Defaults to fitting to the map bounds.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited