Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)