1.3.1 • Published 7 years ago

angular2.leaflet.components v1.3.1

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

Angular2.leaflet.component

my own attemp on creating an Angular 2 leaflet v1.x component

Live examples

all examples sources code can be found here

Bare in mind that I just started developing this and I don't have much time to plan things ahead mainly due to not enough free time, so I am making changes as I go

Install

npm install angular2.leaflet.components

in SystemJs use the following configuration

    transpiler: 'typescript',
    map: {
        'angular2.leaflet.components': 'npm:angular2.leaflet.components',
    },
    packages: {
              'angular2.leaflet.components': {
        main: './index',
        defaultExtension: 'js',
        meta: {
          "format": "register"
        }
      }
    },
    "ts": {
        "main": "plugin.js"
      },
      "typescript": {
        "main": "typescript.js",
        "meta": {
          "lib/typescript.js": {
            "exports": "ts"
          }
        }
      }

I haven't tested it with other transpilers save for typescript, thats why I am including it on the SystemJs config

then on you app module include this

import { CandTLeafletComponent  } from 'angular2.leaflet.components';
import { CandTLeafletService } from 'angular2.leaflet.components';
import { AppComponent } from './components/app.component';

@NgModule({
  imports: [... ],
  declarations: [..., CandTLeafletComponent],
  providers: [CandTLeafletService],
  bootstrap: [AppComponent]
})

Leaflet stylesheet is not included, so you need to add it yourself

for usage check the wiki

https://github.com/elasticrash/Angular2.leaflet.component/wiki

If anyone wants to help in any way feel free to do a fork and a pull request

1.3.1

7 years ago

1.3.0

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago