UNPKG

@mint-ui/map

Version:

- React map library - Control various map with one interface - Google, Naver, Kakao map supported now - Typescript supported - Canvas marker supported

15 lines (10 loc) 293 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function getMapOfType(mapType, map) { if (!map) { return undefined; } var base = window[mapType]; return base && map instanceof base.maps.Map ? map : undefined; } exports.getMapOfType = getMapOfType;