cwt-map
Version:
React.js HERE Maps component
16 lines (15 loc) • 428 B
JavaScript
;
exports.__esModule = true;
var platform;
// return the current platform if there is one,
// otherwise open up a new platform
function getPlatform(platformOptions) {
if (platform) {
return platform;
}
platform = new H.service.Platform(platformOptions);
return platform;
}
exports.getPlatform = getPlatform;
// make the getPlatform method the default export
exports["default"] = getPlatform;