Repository URL to install this package:
|
Version:
2.7.3 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const Image_1 = tslib_1.__importDefault(require("../Image"));
const GoogleMap_1 = tslib_1.__importDefault(require("./GoogleMap"));
const IS_BROWSER = typeof window === 'object'; // const IS_BROWSER = false
// For temporary fix.. Needs to move this in uxui-modules config
const GOOGLE_API_KEY = 'AIzaSyA08efSv82XGllA0frxNT08-_W7sdGgA5A';
class Map extends react_1.default.PureComponent {
// Williamsburg,Brooklyn,NY
// static BASE_URL = 'http://maps.googleapis.com/maps/api/staticmap?center=Tidel+Park+Coimbatore+IT+SEZ&zoom=13&size=600x400'
render() {
let url = Map.BASE_URL;
url += `&markers=color:blue%7Clabel:S%7C11211%7C11206%7C11222`;
url += `&key=${GOOGLE_API_KEY}`;
const mapView = IS_BROWSER ? react_1.default.createElement(GoogleMap_1.default, Object.assign({}, this.props)) : react_1.default.createElement(Image_1.default, {
nowrap: true,
src: url
});
return mapView;
}
}
Map.BASE_URL = 'https://maps.googleapis.com/maps/api/staticmap?center=Vancouver,BC,Canada&zoom=13&size=600x400&maptype=roadmap';
exports.Map = Map;
exports.default = Map; //# sourceMappingURL=Map.js.map