chb-nx-map
Advanced tools
Comparing version 1.0.193 to 1.0.194
@@ -71,5 +71,5 @@ import { NXMapProvider } from "./nx-map-provider"; | ||
constructor(); | ||
initilizeMap(): void; | ||
initilizeMap(mapContainer: any, zoom: any, latlang: any, mapTypeID: any): any; | ||
initilizeAddress(addressInput: any, mapContainer: any, autoCompleteCallback: any): void; | ||
private static renderAddress; | ||
} |
@@ -9,3 +9,10 @@ "use strict"; | ||
//Map functionality needs to be written | ||
initilizeMap() { } | ||
initilizeMap(mapContainer, zoom, latlang, mapTypeID) { | ||
let gMap = new google.maps.Map(mapContainer, { | ||
zoom: zoom, | ||
center: latlang, | ||
mapTypeId: mapTypeID | ||
}); | ||
return gMap; | ||
} | ||
initilizeAddress(addressInput, mapContainer, autoCompleteCallback) { | ||
@@ -12,0 +19,0 @@ const autocomplete = new google.maps.places.Autocomplete(addressInput, { |
export declare class NXMapProvider { | ||
initilizeMap(): void; | ||
initilizeMap(mapContainer: any, zoom: any, latlang: any, mapTypeID: any): any; | ||
initilizeAddress(addressInput: any, mapContainer: any, autoCompleteCallback: any): void; | ||
} |
@@ -5,3 +5,3 @@ "use strict"; | ||
class NXMapProvider { | ||
initilizeMap() { } | ||
initilizeMap(mapContainer, zoom, latlang, mapTypeID) { } | ||
initilizeAddress(addressInput, mapContainer, autoCompleteCallback) { } | ||
@@ -8,0 +8,0 @@ } |
export declare class NXMap { | ||
private _mapProvider; | ||
constructor(mapProvider?: string); | ||
initilizeMap(): void; | ||
initilizeMap(mapContainer: any, zoom: any, latlang: any, mapTypeID: any): any; | ||
initilizeAddress(addressInput: any, mapContainer: any, autoCompleteCallback: any): void; | ||
} |
@@ -15,4 +15,4 @@ "use strict"; | ||
} | ||
initilizeMap() { | ||
this._mapProvider.initilizeMap(); | ||
initilizeMap(mapContainer, zoom, latlang, mapTypeID) { | ||
this._mapProvider.initilizeMap(mapContainer, zoom, latlang, mapTypeID); | ||
} | ||
@@ -19,0 +19,0 @@ //initilizeAddress(addressInput, mapContainer: HTMLDivElement = null, autoCompleteCallback):void |
{ | ||
"name": "chb-nx-map", | ||
"version": "1.0.193", | ||
"version": "1.0.194", | ||
"description": "NX Typscript library for address lookup using Google API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
11950
279