Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/3dtech/3dwayfinderangular
3D Wayfinder Angular Service and Directives
https://github.com/3dtech/3dwayfinderangular
Last synced: 8 days ago
JSON representation
3D Wayfinder Angular Service and Directives
- Host: GitHub
- URL: https://github.com/3dtech/3dwayfinderangular
- Owner: 3dtech
- License: mit
- Created: 2015-08-25T09:00:54.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-03T08:25:17.000Z (over 5 years ago)
- Last Synced: 2024-11-07T15:56:25.598Z (12 days ago)
- Language: JavaScript
- Homepage: http://3dwayfinder.com/docs/
- Size: 29.4 MB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 3DWayfinderAngular
Angular Service for 3D Wayfinder (now supports 2D maps also)## Getting started
### Install
```bash
bower install --save 3dwayfinder-angular
```Please include the following JavaScript files into Your HTML file and inject wfangular into Your Angular app:
```javascript
var app = angular.module('basictest', ['wfangular']);
app.config(['wfangularConfig', function(wayfinderConfig){
wayfinderConfig.mapType = '2d';
}])
app.run(['wfangular', function(wayfinder) {
wayfinder.open();
}]);```
## Broadcasted events
* wf.data.loaded - broadcasted when all data is loaded
* wf.poi.click - broadcasted when user clicks on map. Arguments: POI
* wf.language.change - broadcasted when language is changed. Arguments: language code {string} (eg en, de etc)
* wf.floor.change - broadcasted when floor is changed. Arguments: Floor
* wf.zoom.change - broadcasted when zoom is changed. Arguments: zoom {float}
* wf.path.floor.change - broadcasted when path animation changes floor: Arguments: Object {current: Floor, next: Floor, destination: Floor}## Directives
* wf-banner - displays a banner, ex. id="advertisements" template="default"
* wf-floor-buttons - displays floor buttons, on-click function to react, can give additional parameters for the button group via group-class and for the buttons via button-class, see example below
```javascript```
##Options
Constant wfangularConfig takes the following arguments for changing the behavior:
* assetsLocation: 'http://static.3dwayfinder.com/shared/',
* apiLocation: 'http://api.3dwayfinder.com'
* mapType: '3d'//2d