Giter Site home page Giter Site logo

jerry-goodboy / angular2-leaflet-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from haoliangyu/ngx-leaflet-starter

0.0 1.0 0.0 10.53 MB

A soup of Angular2 and Leaflet

Home Page: http://haoliangyu.github.io/angular2-leaflet-starter/

License: MIT License

TypeScript 55.12% HTML 9.30% CSS 4.37% JavaScript 31.22%

angular2-leaflet-starter's Introduction

Angular2-Leaflet-Starter

Build Status

A web mapping application starter based on Angular 2 and Leaflet. This project demo includes basic mapping features:

  • Display base maps from different sources

  • Integrate Font-Awesome

  • Initialize map based on user's IP address location

  • Geocode address and zoom to result location

  • Add/remove markers on the map

  • Use unofficially typed Leaflet plugin

  • Webpack 2

Support Angular 2.x and Leaflet 1.0 now!

See how it looks at demo page.

FAQ

How about new features?

Since this project has been reached its initial goal to provide a small and clean code base for Angular 2 and Leaflet integration, currently there is no plan for new feature development. But I am open to suggestions and PRs. If you think it's beneficial to add something new (not in very specific purposes), please feel free to submit an issue for dicussion.

Oops, this plugin is not typed!?

Most Leaflet plugins are not typed, but it doesn't mean they are not usable. To use them in a TypeScript project, one way is to provide a minimal type declaration file.

In the starter, a minimal type declaration file is created for the Leaflet.VectorGrid. This plugin is used to add the global airport sites (from openflights.org) as a vector tile layer.

GeoJSON file is not found?

If you build and open the app using webpack-dev-server, you will get an geojson not found error when toggling the vector tile layer. It's because external resources are not copied into the memory by webpack-dev-server. Open the public/index.html instead.

How to start?

This project requires npm (or yarn).

  1. Run npm install or yarn install to install dependencies.

  2. Run npm run build to build the project.

  3. Open the app at public/index.html.

Thanks to these awesome people!

Looking for other demos?

angular2-leaflet-starter's People

Contributors

haoliangyu avatar bilal-io avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.