All google properties must be able to be defined in html without Javascript.
Thus, basic users don't even have to know what Javascript is.
Expose all original Google Maps V3 api to the user without any exception.
No hiding or manipulation. By doing so, programmers don't need to learn anything about this convenient module.
If you know Google Maps V3 API, there shouldn't be a problem using this module.
Usage
Install node_module @ngui/map and typings
$ npm install @ngui/map @types/googlemaps --save
For SystemJs users only, update system.config.js to recognize @ngui/map.
exportclassMyAppComponent{onMapReady(map){console.log('map',map);console.log('markers',map.markers);// to get all markers as an array }onIdle(event){console.log('map',event.target);}onMarkerInit(marker){console.log('marker',marker);}onMapClick(event){this.positions.push(event.latLng);event.target.panTo(event.latLng);}}
Need Contributors
This ngui-map module is only improved and maintained by volunteers like you;
As a volunteer, it's NOT required to be skilled in Javascript or Angular2.
It’s required to be open-minded and interested in helping others.
You can contribute to the following;
Updating README.md
Adding clear and descriptive comments
Answering issues and building FAQ
Documentation
Translation
As a result of your active contribution, you will be listed as a core contributor
on https://ng2-ui.github.io, and a member of ng2-ui too.
If you are interested in becoming a contributor and/or a member of ng-ui,
please send me email to allenhwkim AT gmail.com with your github id.
请发表评论