ShareMapPoi class
Standard Data Model representing a POI extracted from a map layer or server.
Constructors
-
const
-
Parses a ShareMapPoi from a JSON object or MapLibre rendered feature map.
factory
Properties
- address → String?
-
Optional street / physical address.
final
- areaHa → double?
-
Optional total area in hectares (ha).
final
- businessId → String?
-
Optional owning business ID for private/custom layers.
final
- description → String?
-
Optional detailed description.
final
- developer → String?
-
Optional developer / investor organization.
final
- distAirportKm → double?
-
Distance to nearest airport in kilometers.
final
- distPortKm → double?
-
Distance to nearest seaport in kilometers.
final
- email → String?
-
Optional email address.
final
- establishedYear → int?
-
Year established.
final
- externalId → String?
-
System UUID external ID.
final
-
geometry
→ Map<
String, dynamic> ? -
Original GeoJSON geometry returned by the map or backend.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasWwt → bool?
-
final
- id → String
-
Unique identifier of the POI.
final
- industrialLandHa → double?
-
Optional industrial land area in hectares (ha).
final
- isEcoIndustrial → bool?
-
final
- isEpz → bool?
-
Boolean attributes for industrial zones / special facilities.
final
- isHitech → bool?
-
final
- isSupportingIndustry → bool?
-
final
- isVsip → bool?
-
final
- lat → double
-
Latitude coordinate (WGS84).
final
- layerCode → String?
-
Optional business layer code (e.g. 'VN_INDUSTRIAL_ZONES').
final
- leaseTermYear → int?
-
Lease term in years.
final
- lng → double
-
Longitude coordinate (WGS84).
final
- name → String
-
Display name of the POI (Vietnamese / Primary).
final
- nameEn → String?
-
English name of the POI.
final
- nearestAirport → String?
-
Name of the nearest airport.
final
- nearestHighway → String?
-
Nearest national highway or expressway.
final
- nearestPort → String?
-
Name of the nearest seaport.
final
- notes → String?
-
Optional notes or operational remarks.
final
- occupancyRate → double?
-
Optional occupancy rate percentage (0 - 100).
final
- operationalYear → int?
-
Year operational.
final
- phone → String?
-
Optional phone contact.
final
- poiGroup → String?
-
Optional POI group (e.g. 'industrial', 'transport_infra').
final
- poiType → String?
-
Optional internal POI category type (e.g. 'industrial_zone', 'warehouse').
final
-
properties
→ Map<
String, dynamic> -
Extra custom properties from vector tile feature or backend.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String?
-
Optional operational status (e.g. 'active', 'hoat_dong', 'planning').
final
- website → String?
-
Optional website URL.
final
Methods
-
copyWith(
{String? id, String? externalId, String? name, String? nameEn, double? lat, double? lng, String? description, String? address, String? layerCode, String? poiGroup, String? poiType, String? status, double? areaHa, double? industrialLandHa, double? occupancyRate, String? developer, String? notes, int? establishedYear, int? operationalYear, int? leaseTermYear, double? distPortKm, String? nearestPort, double? distAirportKm, String? nearestAirport, String? nearestHighway, bool? isEpz, bool? isVsip, bool? isHitech, bool? isEcoIndustrial, bool? isSupportingIndustry, bool? hasWwt, String? phone, String? email, String? website, String? businessId, Map< String, dynamic> ? geometry, Map<String, dynamic> ? properties}) → ShareMapPoi - Returns a copy of this POI with the given fields replaced by the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this ShareMapPoi to a JSON-serializable Map.
-
toSelectionDebugLog(
) → String - Formats the parsed fields and all raw vector-tile properties for a POI selected by the user. It does not log during parsing, which keeps map rendering free of per-feature debug output.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override