leaflet-fa-markers | Simple svg map markers with FontAwesome icons | Map library
kandi X-RAY | leaflet-fa-markers Summary
kandi X-RAY | leaflet-fa-markers Summary
Simple svg map markers with FontAwesome icons.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of leaflet-fa-markers
leaflet-fa-markers Key Features
leaflet-fa-markers Examples and Code Snippets
Community Discussions
Trending Discussions on leaflet-fa-markers
QUESTION
I need some help with imports, I am using @types/leaflet that defines a type
...ANSWER
Answered 2017-Sep-13 at 07:48What I have found is to modify a bit the code in order to get it work
- Convert the JS file in typescript file
Add import
import { Icon, IconOptions } from 'leaflet'; import * as L from 'leaflet';
export class FontAwesomeIcon extends Icon { // Add your JS code here }
Add an index.ts file:
export { FontAwesomeIcon, FontAwesomeOptions } from './fontAwesomeIcon';
I've posted the code here: https://github.com/mylen/ngx-leaflet-fa-markers
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install leaflet-fa-markers
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page