NativeScript Google Maps SDK utility library to support features such as marker clustering, heatmap, ...
Switch branches/tags
Clone or download
Latest commit e27f68e Jun 14, 2017
Permalink
Failed to load latest commit information.
demo mergefix Jun 13, 2017
platforms fix clustered marker events Jun 13, 2017
typings . Jun 13, 2017
.gitignore . Jun 13, 2017
.npmignore . Jun 13, 2017
.npmrc . Jun 13, 2017
LICENSE.md Update LICENSE.md Sep 12, 2016
README.md Corrected typo on dependency url Dec 12, 2016
index.android.ts . Jun 13, 2017
index.d.ts rename Sep 12, 2016
index.ios.ts . Jun 13, 2017
package.json . Jun 13, 2017
references.d.ts mergefix Jun 13, 2017
tsconfig.json . Jun 13, 2017

README.md

nativescript-google-maps-utils

NativeScript Google Maps SDK utility library to support features such as marker clustering, heatmap, ...

Andoird #1 Andoird #2 Andoird #3 Andoird #4

State

Android implemented.

iOS not implemented.

Dependencies

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"