
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@acpaas-ui/ngx-leafet
Advanced tools
This module renders a map component with some basic controls, based on [Leaflet](https://leafletjs.com).
This module renders a map component with some basic controls, based on Leaflet.
leafletleaflet-drawesri-leafletimport { LeafletMap } from '@acpaas-ui/ngx-leaflet';
Add the leaflet CSS styles to the src/angular.json file.
"styles": [
"node_modules/leaflet/dist/leaflet.css",
"node_modules/leaflet-draw/dist/leaflet.draw.css"
]
Visit our documentation site for full how-to docs and guidelines
| Name | Default value | Description |
|---|---|---|
@Input() leafletMap: LeafletMap; | - | An instance of the Leaflet Map class. |
@Input() hasSidebar: boolean; | false | Define if the map has a sidebar. |
@Input() zoomLevel: number; | 19 | Define how far to zoom in Leaflet Zoom Level |
Check the Leaflet API reference for Leaflet specific API's.
import { LeafletMap, baseMapWorldGray, baseMapAntwerp } from '@acpaas-ui/ngx-leaflet';
public leafletMap: LeafletMap = new LeafletMap({
zoom: 13, // default zoom level
center: [51.215, 4.425], // default center point
onAddPolygon: (layer) => {},
onAddLine: (layer) => {},
onEditFeature: (feature) => {},
});
public ngOnInit(): void {
this.leafletMap.onInit.subscribe(() => {
this.leafletMap.addTileLayer(baseMapWorldGray);
this.leafletMap.addTileLayer(baseMapAntwerp);
});
}
<aui-leaflet [leafletMap]="leafletMap" [hasSidebar]="true">
<div controls top left>
<aui-leaflet-drag-control></aui-leaflet-drag-control>
<aui-leaflet-draw-control></aui-leaflet-draw-control>
</div>
<div controls top right>
<aui-leaflet-fullscreen-control></aui-leaflet-fullscreen-control>
</div>
<div controls bottom left>
<aui-leaflet-locate-control zoomLevel="16"></aui-leaflet-locate-control>
</div>
<div controls bottom right>
<aui-leaflet-zoom-control></aui-leaflet-zoom-control>
</div>
<div>
Content displayed in sidebar
</div>
</aui-leaflet>
map: The native leaflet map instanceaddTileLayer(layer: LeafletLayer): adds a tile layer to the map. (see leaflet docs)addFeatureLayer(config: any): adds a feature layer to the map. (see esri leaflet docs)addGeoJSON(geoJson: any, config: any): add geoJSON to the map. (see leaflet docs)fitFeatureLayers(featureLayers): Fit the map bounds to the given feature layers.removeLayer(layer): removes a layerzoomIn(): Zoom inzoomOut(): Zoom outtoggleFullscreen(): Toggle fullscreenlocate(zoomLevel): Start zooming to current location with an optional zoom levelsetView(center, zoom): Zoom to the given center and zoom values.addMarker(position, options): Adds a marker to the given position. (see leaflet docs)addHTMLMarker: Adds an HTML marker to the given position.Visit our Contribution Guidelines for more information on how to contribute.
FAQs
This module renders a map component with some basic controls, based on [Leaflet](https://leafletjs.com).
We found that @acpaas-ui/ngx-leafet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.