Use AmapLocaHeatmap for 3D heatmaps
devAmapLocaHeatmap component provides 3D heatmap visualization. It supports aggregated point data with customizable color settings and allows for heat aggregation based on either pixel units or meter units.repository·dev·Indexed 43 days ago
https://github.com/yangyanggu/vue-amapA set of Vue 3 map components based on Amap (Gaode Maps) 2.0. It provides high-level abstractions for map features, including support for Loca 2.0 spatial data visualization and Three.js integration for loading 3D GLTF models and managing lighting environments.
AmapLocaHeatmap component provides 3D heatmap visualization. It supports aggregated point data with customizable color settings and allows for heat aggregation based on either pixel units or meter units.AmapLoca component serves as a container and controller for Loca layers. It allows you to manage spatial data layers and interact with them through events. You can configure event behavior and pass additional options during initialization.The AmapLabelMarker component is used to place markers on the map that include both an icon and text content.
To display specific text on the marker, do not use the name attribute (which is used as an internal identifier); instead, configure the text object's content property.
AmapLocaZMarker component is a layer for markers that stand perpendicular to the Earth's surface. It is designed for displaying data-related text or images and supports a 'billboard' effect where markers always face the screen, making it ideal for text-based information. You can provide custom DOM elements for drawing.The AmapLocaPulseLink component is a Loca layer used to render pulse link maps (flying lines). It supports features such as curvature, line width, transition colors, and pulse animations to represent data directionality.
Data can be provided via a sourceUrl (pointing to a GeoJSON endpoint) or directly via a sourceData object containing GeoJSON data. If both are provided, sourceUrl takes precedence.
The AmapLayerHeatMap component provides heat map visualization based on heatmap.js (v2.0). It displays data density using color gradients to intuitively show where data points are concentrated. It is compatible with Chrome, Firefox, Safari, and IE9+.
<!-- Example usage concept -->
<amap-layer-heat-map
:data-set="{ data: points, max: 100 }"
:radius="30"
:gradient="{ 0.4: 'rgb(0, 255, 255)', 0.85: 'rgb(100, 0, 255)' }"
/>AmapLocaPrism component is a prism layer used to represent 3D volumetric prisms using point-type data. It uses height, color, and radius to express different dimensional attributes of the data. It supports animations and lighting effects.The AmapLocaGrid component is used to visualize point data by dividing the map into a grid of regions. Each grid cell contains the information of the points falling within it.
Key features include:
radius) and spacing (gap).acceptLight is set to true and lighting is configured in the loca object, 3D grids will exhibit light reflection effects.cullface attribute to improve performance by culling faces (e.g., back to cull back faces).The AmapLocaScatter component is used to display points on a large-scale ground surface. It supports three types of visual representations: colored circles, icons, and animated icons.
Important: To enable animations for icons, you must explicitly call loca.animate.start();.
// To enable animations for animated icons
loca.animate.start();The AmapControlGeolocation component is a wrapper for the AMap.Geolocation plugin. It provides features such as obtaining current accurate positions, retrieving city information, and continuous positioning (via browser geolocation).
Users can handle positioning results in two ways:
getCurrentPosition.complete event.It integrates multiple positioning methods including browser geolocation, high-precision IP geolocation, and Android SDK assistance.
<!-- Example usage concept -->
<amap-control-geolocation
:pan-to-location="true"
@complete="onGeolocationComplete"
/>The AmapLocaHexagon component is used to create hexagonal grid maps. It partitions point data into several hexagonal regions, where each region contains the point data falling within it.
Key features include:
radius) and spacing (gap).acceptLight is set to true and lighting is configured in the loca object, the 3D hexagonal grids will exhibit light reflection effects.cullface to cull the back or front faces to improve rendering performance.AmapGeojson component is a GeoJSON class that inherits from OverlayGroup. It allows for mutual conversion between GeoJSON objects and OverlayGroup. It is used to render GeoJSON data on an AMap map by automatically creating markers, polylines, or polygons based on the GeoJSON geometry types.