Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tether/pf-ion-mapref
Open in Maps href
https://github.com/tether/pf-ion-mapref
Last synced: about 7 hours ago
JSON representation
Open in Maps href
- Host: GitHub
- URL: https://github.com/tether/pf-ion-mapref
- Owner: tether
- License: cc-by-4.0
- Created: 2015-07-27T18:57:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-13T17:49:10.000Z (about 9 years ago)
- Last Synced: 2024-10-10T07:07:07.183Z (27 days ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 0
- Watchers: 15
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ion-MapRef
Open in Maps href
## Installation
```bash
bower install pf-ion-mapref
```## Usage
```javascript
angular.module('MyModule', ['pf-ion-mapref']);
``````html
Open in Maps
```
Will render your `href` set according to the platform you're on:
* iOS: `maps://…`
* Android: `geo://…`
* Otherwise: `http://maps.google.com/…`### Heads Up!
You'll need to add those URLs to angular's whitelist:
```javascript
app.config(['$compileProvider', function ($compileProvider) {
$compileProvider.aHrefSanitizationWhitelist(/^(maps|geo):/);
}]);
```# License [![Creative Commons License](http://i.creativecommons.org/l/by/4.0/80x15.png)](http://creativecommons.org/licenses/by/4.0/)
Creative Commons Attribution 4.0 International---
Proudly brought to you by [PetroFeed](http://PetroFeed.com).
![Pedro](https://www.petrofeed.com/img/company/pedro.png)