Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naderio/nativescript-google-maps-utils
NativeScript Google Maps SDK utility library to support features such as marker clustering, heatmap, ...
https://github.com/naderio/nativescript-google-maps-utils
android google-maps heatmap ios marker-clustering mobile nativescript
Last synced: about 2 months ago
JSON representation
NativeScript Google Maps SDK utility library to support features such as marker clustering, heatmap, ...
- Host: GitHub
- URL: https://github.com/naderio/nativescript-google-maps-utils
- Owner: naderio
- License: unlicense
- Created: 2016-09-12T08:49:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-05T10:48:52.000Z (almost 6 years ago)
- Last Synced: 2024-11-10T16:28:40.764Z (about 2 months ago)
- Topics: android, google-maps, heatmap, ios, marker-clustering, mobile, nativescript
- Language: TypeScript
- Size: 1.99 MB
- Stars: 33
- Watchers: 6
- Forks: 15
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
nativescript-google-maps-utils
==================================NativeScript Google Maps SDK utility library to support features such as marker clustering, heatmap, ...
![Andoird #1](./demo/screenshots/android.1.png "Andoird #1")
![Andoird #2](./demo/screenshots/android.2.png "Andoird #2")
![Andoird #3](./demo/screenshots/android.3.png "Andoird #3")
![Andoird #4](./demo/screenshots/android.4.png "Andoird #4")# State
Android implemented.
iOS not implemented.
## Dependencies
* [nativescript-google-maps-sdk](https://github.com/dapriett/nativescript-google-maps-sdk)
* https://github.com/googlemaps/android-maps-utils
* https://github.com/googlemaps/google-maps-ios-utils# Install
```
tns plugin add nativescript-google-maps-utils
```# Usage
```
var GoogleMaps = require('nativescript-google-maps-sdk');
var GoogleMapsUtils = require('nativescript-google-maps-utils');function onMapReady(args) {
var mapView = args.object;
var positionSet = [ /* GoogleMaps.Position... */ ];
GoogleMapsUtils.setupHeatmap(mapView, positionSet);
var markerSet = [ /* GoogleMaps.Marker... */ ];
GoogleMapsUtils.setupMarkerCluster(mapView, makerSet);
}
...```
## Usage with TypeScript
import using either of
* `import GoogleMapsUtils = require("nativescript-google-maps-utils")`
* `import * as GoogleMapsUtils from "nativescript-google-maps-utils"`