HighchartsMapViewOptions class
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).
To set the view dynamically after chart generation, see mapView.setView.
- Inheritance
-
- Object
- HighchartsOptionsBase
- HighchartsMapViewOptions
Constructors
- HighchartsMapViewOptions.new({String? center, dynamic fitToGeometry, HighchartsMapViewInsetOptions? insetOptions, HighchartsMapViewInsetsOptions? insets, double? maxZoom, List? padding, HighchartsMapViewProjectionOptions? projection, double? zoom})
-
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).
Properties
- center ↔ String?
-
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.
getter/setter pair
- fitToGeometry ↔ dynamic
-
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
center
andzoom
, where the view doesn't scale with different map sizes.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- insetOptions ↔ HighchartsMapViewInsetOptions?
-
Generic options for the placement and appearance of map insets like
non-contiguous territories.
getter/setter pair
- insets ↔ HighchartsMapViewInsetsOptions?
-
The individual MapView insets, typically used for non-contiguous
areas of a country. Each item inherits from the generic
insetOptions
.getter/setter pair - maxZoom ↔ double?
-
Prevents the end user from zooming too far in on the map. See
zoom.
getter/setter pair
- padding ↔ List?
-
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.
getter/setter pair
- projection ↔ HighchartsMapViewProjectionOptions?
-
The projection options allow applying client side projection to a map
given in geographic coordinates, typically from TopoJSON or GeoJSON.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- zoom ↔ double?
-
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.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJSON(
) → String -
Serializes the settings to a JSON string.
inherited
-
toOptionsJSON(
StringBuffer buffer) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited