A web mapping application starter based on Angular 2 and Leaflet. This project demo includes basic mapping functions:
-
Display base maps from different sources
-
Integrate Font-Awesome
-
Initialize map based on client's IP location (currently not working) -
Geocode address and zoom to result location
-
Add/remove markers on the map
-
Create interactive marker popup
Working with Angular 2 beta.9.
See how it works at demo page.
This project requires npm, tsd, webpack.
-
Run
npm install
to install all dependencies. -
Run
tsd install
to install type definition. -
Run
webpack
to build the project. -
As a more convinient way, run the webpack-dev-server to set up the app at
http://localhost:8080