InterractiveMapLayer constructor

InterractiveMapLayer({
  1. List<MapLayerType> renderOrder = const [MapLayerType.polygons, MapLayerType.polylines, MapLayerType.markers],
  2. bool isInterractive = true,
  3. @Deprecated("too specialized logic, must be implemented out the package, this will be removed soon") DisplayPolygonLayerLogic? displayLogic,
  4. List<Polygon<Object>>? polygons,
  5. List<Polyline<Object>>? polylines,
  6. List<Marker>? markers,
  7. void onTapDownLayer(
    1. InterractiveMapLayerTapDown interaction
    )?,
  8. void onHoverLayer(
    1. InterractiveMapLayerHover? interaction
    )?,
  9. @Deprecated("Use onTapDownLayer & onHoverLayer instead, they directly provide the hit objects") List<Polygon<Object>> polygonsFromHitValues(
    1. List<Object> hitValues
    )?,
})

Constructor

Implementation

InterractiveMapLayer({
  this.renderOrder = const [
    MapLayerType.polygons,
    MapLayerType.polylines,
    MapLayerType.markers,
  ], // by default, will draw polygons as backdrop, then polylines in the middle layer, then marker on top
  this.isInterractive = true,
  @Deprecated("too specialized logic, must be implemented out the package, this will be removed soon")
  this.displayLogic,
  this.polygons,
  this.polylines,
  this.markers,
  this.onTapDownLayer,
  this.onHoverLayer,
  @Deprecated("Use onTapDownLayer & onHoverLayer instead, they directly provide the hit objects")
  this.polygonsFromHitValues,
});