react-map4d-map 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1104 +1,5 @@
1
1
  import React, { createContext, useContext, useRef, useEffect } from 'react';
2
2
 
3
- function createCommonjsModule(fn, module) {
4
- return module = { exports: {} }, fn(module, module.exports), module.exports;
5
- }
6
-
7
- /** @license React v16.13.1
8
- * react-is.production.min.js
9
- *
10
- * Copyright (c) Facebook, Inc. and its affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */
15
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
16
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
17
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
18
- var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
19
- var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
20
- var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
21
-
22
- var reactIs_production_min = {
23
- AsyncMode: AsyncMode,
24
- ConcurrentMode: ConcurrentMode,
25
- ContextConsumer: ContextConsumer,
26
- ContextProvider: ContextProvider,
27
- Element: Element,
28
- ForwardRef: ForwardRef,
29
- Fragment: Fragment,
30
- Lazy: Lazy,
31
- Memo: Memo,
32
- Portal: Portal,
33
- Profiler: Profiler,
34
- StrictMode: StrictMode,
35
- Suspense: Suspense,
36
- isAsyncMode: isAsyncMode,
37
- isConcurrentMode: isConcurrentMode,
38
- isContextConsumer: isContextConsumer,
39
- isContextProvider: isContextProvider,
40
- isElement: isElement,
41
- isForwardRef: isForwardRef,
42
- isFragment: isFragment,
43
- isLazy: isLazy,
44
- isMemo: isMemo,
45
- isPortal: isPortal,
46
- isProfiler: isProfiler,
47
- isStrictMode: isStrictMode,
48
- isSuspense: isSuspense,
49
- isValidElementType: isValidElementType,
50
- typeOf: typeOf
51
- };
52
-
53
- var reactIs_development = createCommonjsModule(function (module, exports) {
54
-
55
-
56
-
57
- if (process.env.NODE_ENV !== "production") {
58
- (function() {
59
-
60
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
61
- // nor polyfill, then a plain number is used for performance.
62
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
63
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
64
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
65
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
66
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
67
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
68
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
69
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
70
- // (unstable) APIs that have been removed. Can we remove the symbols?
71
-
72
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
73
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
74
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
75
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
76
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
77
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
78
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
79
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
80
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
81
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
82
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
83
-
84
- function isValidElementType(type) {
85
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
86
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
87
- }
88
-
89
- function typeOf(object) {
90
- if (typeof object === 'object' && object !== null) {
91
- var $$typeof = object.$$typeof;
92
-
93
- switch ($$typeof) {
94
- case REACT_ELEMENT_TYPE:
95
- var type = object.type;
96
-
97
- switch (type) {
98
- case REACT_ASYNC_MODE_TYPE:
99
- case REACT_CONCURRENT_MODE_TYPE:
100
- case REACT_FRAGMENT_TYPE:
101
- case REACT_PROFILER_TYPE:
102
- case REACT_STRICT_MODE_TYPE:
103
- case REACT_SUSPENSE_TYPE:
104
- return type;
105
-
106
- default:
107
- var $$typeofType = type && type.$$typeof;
108
-
109
- switch ($$typeofType) {
110
- case REACT_CONTEXT_TYPE:
111
- case REACT_FORWARD_REF_TYPE:
112
- case REACT_LAZY_TYPE:
113
- case REACT_MEMO_TYPE:
114
- case REACT_PROVIDER_TYPE:
115
- return $$typeofType;
116
-
117
- default:
118
- return $$typeof;
119
- }
120
-
121
- }
122
-
123
- case REACT_PORTAL_TYPE:
124
- return $$typeof;
125
- }
126
- }
127
-
128
- return undefined;
129
- } // AsyncMode is deprecated along with isAsyncMode
130
-
131
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
132
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
133
- var ContextConsumer = REACT_CONTEXT_TYPE;
134
- var ContextProvider = REACT_PROVIDER_TYPE;
135
- var Element = REACT_ELEMENT_TYPE;
136
- var ForwardRef = REACT_FORWARD_REF_TYPE;
137
- var Fragment = REACT_FRAGMENT_TYPE;
138
- var Lazy = REACT_LAZY_TYPE;
139
- var Memo = REACT_MEMO_TYPE;
140
- var Portal = REACT_PORTAL_TYPE;
141
- var Profiler = REACT_PROFILER_TYPE;
142
- var StrictMode = REACT_STRICT_MODE_TYPE;
143
- var Suspense = REACT_SUSPENSE_TYPE;
144
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
145
-
146
- function isAsyncMode(object) {
147
- {
148
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
149
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
150
-
151
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
152
- }
153
- }
154
-
155
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
156
- }
157
- function isConcurrentMode(object) {
158
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
159
- }
160
- function isContextConsumer(object) {
161
- return typeOf(object) === REACT_CONTEXT_TYPE;
162
- }
163
- function isContextProvider(object) {
164
- return typeOf(object) === REACT_PROVIDER_TYPE;
165
- }
166
- function isElement(object) {
167
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
168
- }
169
- function isForwardRef(object) {
170
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
171
- }
172
- function isFragment(object) {
173
- return typeOf(object) === REACT_FRAGMENT_TYPE;
174
- }
175
- function isLazy(object) {
176
- return typeOf(object) === REACT_LAZY_TYPE;
177
- }
178
- function isMemo(object) {
179
- return typeOf(object) === REACT_MEMO_TYPE;
180
- }
181
- function isPortal(object) {
182
- return typeOf(object) === REACT_PORTAL_TYPE;
183
- }
184
- function isProfiler(object) {
185
- return typeOf(object) === REACT_PROFILER_TYPE;
186
- }
187
- function isStrictMode(object) {
188
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
189
- }
190
- function isSuspense(object) {
191
- return typeOf(object) === REACT_SUSPENSE_TYPE;
192
- }
193
-
194
- exports.AsyncMode = AsyncMode;
195
- exports.ConcurrentMode = ConcurrentMode;
196
- exports.ContextConsumer = ContextConsumer;
197
- exports.ContextProvider = ContextProvider;
198
- exports.Element = Element;
199
- exports.ForwardRef = ForwardRef;
200
- exports.Fragment = Fragment;
201
- exports.Lazy = Lazy;
202
- exports.Memo = Memo;
203
- exports.Portal = Portal;
204
- exports.Profiler = Profiler;
205
- exports.StrictMode = StrictMode;
206
- exports.Suspense = Suspense;
207
- exports.isAsyncMode = isAsyncMode;
208
- exports.isConcurrentMode = isConcurrentMode;
209
- exports.isContextConsumer = isContextConsumer;
210
- exports.isContextProvider = isContextProvider;
211
- exports.isElement = isElement;
212
- exports.isForwardRef = isForwardRef;
213
- exports.isFragment = isFragment;
214
- exports.isLazy = isLazy;
215
- exports.isMemo = isMemo;
216
- exports.isPortal = isPortal;
217
- exports.isProfiler = isProfiler;
218
- exports.isStrictMode = isStrictMode;
219
- exports.isSuspense = isSuspense;
220
- exports.isValidElementType = isValidElementType;
221
- exports.typeOf = typeOf;
222
- })();
223
- }
224
- });
225
-
226
- var reactIs = createCommonjsModule(function (module) {
227
-
228
- if (process.env.NODE_ENV === 'production') {
229
- module.exports = reactIs_production_min;
230
- } else {
231
- module.exports = reactIs_development;
232
- }
233
- });
234
-
235
- /*
236
- object-assign
237
- (c) Sindre Sorhus
238
- @license MIT
239
- */
240
- /* eslint-disable no-unused-vars */
241
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
242
- var hasOwnProperty = Object.prototype.hasOwnProperty;
243
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
244
-
245
- function toObject(val) {
246
- if (val === null || val === undefined) {
247
- throw new TypeError('Object.assign cannot be called with null or undefined');
248
- }
249
-
250
- return Object(val);
251
- }
252
-
253
- function shouldUseNative() {
254
- try {
255
- if (!Object.assign) {
256
- return false;
257
- }
258
-
259
- // Detect buggy property enumeration order in older V8 versions.
260
-
261
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
262
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
263
- test1[5] = 'de';
264
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
265
- return false;
266
- }
267
-
268
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
269
- var test2 = {};
270
- for (var i = 0; i < 10; i++) {
271
- test2['_' + String.fromCharCode(i)] = i;
272
- }
273
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
274
- return test2[n];
275
- });
276
- if (order2.join('') !== '0123456789') {
277
- return false;
278
- }
279
-
280
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
281
- var test3 = {};
282
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
283
- test3[letter] = letter;
284
- });
285
- if (Object.keys(Object.assign({}, test3)).join('') !==
286
- 'abcdefghijklmnopqrst') {
287
- return false;
288
- }
289
-
290
- return true;
291
- } catch (err) {
292
- // We don't expect any of the above to throw, but better to be safe.
293
- return false;
294
- }
295
- }
296
-
297
- var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
298
- var from;
299
- var to = toObject(target);
300
- var symbols;
301
-
302
- for (var s = 1; s < arguments.length; s++) {
303
- from = Object(arguments[s]);
304
-
305
- for (var key in from) {
306
- if (hasOwnProperty.call(from, key)) {
307
- to[key] = from[key];
308
- }
309
- }
310
-
311
- if (getOwnPropertySymbols) {
312
- symbols = getOwnPropertySymbols(from);
313
- for (var i = 0; i < symbols.length; i++) {
314
- if (propIsEnumerable.call(from, symbols[i])) {
315
- to[symbols[i]] = from[symbols[i]];
316
- }
317
- }
318
- }
319
- }
320
-
321
- return to;
322
- };
323
-
324
- /**
325
- * Copyright (c) 2013-present, Facebook, Inc.
326
- *
327
- * This source code is licensed under the MIT license found in the
328
- * LICENSE file in the root directory of this source tree.
329
- */
330
-
331
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
332
-
333
- var ReactPropTypesSecret_1 = ReactPropTypesSecret;
334
-
335
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
336
-
337
- var printWarning = function() {};
338
-
339
- if (process.env.NODE_ENV !== 'production') {
340
- var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
341
- var loggedTypeFailures = {};
342
- var has$1 = has;
343
-
344
- printWarning = function(text) {
345
- var message = 'Warning: ' + text;
346
- if (typeof console !== 'undefined') {
347
- console.error(message);
348
- }
349
- try {
350
- // --- Welcome to debugging React ---
351
- // This error was thrown as a convenience so that you can use this stack
352
- // to find the callsite that caused this warning to fire.
353
- throw new Error(message);
354
- } catch (x) { /**/ }
355
- };
356
- }
357
-
358
- /**
359
- * Assert that the values match with the type specs.
360
- * Error messages are memorized and will only be shown once.
361
- *
362
- * @param {object} typeSpecs Map of name to a ReactPropType
363
- * @param {object} values Runtime values that need to be type-checked
364
- * @param {string} location e.g. "prop", "context", "child context"
365
- * @param {string} componentName Name of the component for error messages.
366
- * @param {?Function} getStack Returns the component stack.
367
- * @private
368
- */
369
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
370
- if (process.env.NODE_ENV !== 'production') {
371
- for (var typeSpecName in typeSpecs) {
372
- if (has$1(typeSpecs, typeSpecName)) {
373
- var error;
374
- // Prop type validation may throw. In case they do, we don't want to
375
- // fail the render phase where it didn't fail before. So we log it.
376
- // After these have been cleaned up, we'll let them throw.
377
- try {
378
- // This is intentionally an invariant that gets caught. It's the same
379
- // behavior as without this statement except with a better message.
380
- if (typeof typeSpecs[typeSpecName] !== 'function') {
381
- var err = Error(
382
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
383
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
384
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
385
- );
386
- err.name = 'Invariant Violation';
387
- throw err;
388
- }
389
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
390
- } catch (ex) {
391
- error = ex;
392
- }
393
- if (error && !(error instanceof Error)) {
394
- printWarning(
395
- (componentName || 'React class') + ': type specification of ' +
396
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
397
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
398
- 'You may have forgotten to pass an argument to the type checker ' +
399
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
400
- 'shape all require an argument).'
401
- );
402
- }
403
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
404
- // Only monitor this failure once because there tends to be a lot of the
405
- // same error.
406
- loggedTypeFailures[error.message] = true;
407
-
408
- var stack = getStack ? getStack() : '';
409
-
410
- printWarning(
411
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
412
- );
413
- }
414
- }
415
- }
416
- }
417
- }
418
-
419
- /**
420
- * Resets warning cache when testing.
421
- *
422
- * @private
423
- */
424
- checkPropTypes.resetWarningCache = function() {
425
- if (process.env.NODE_ENV !== 'production') {
426
- loggedTypeFailures = {};
427
- }
428
- };
429
-
430
- var checkPropTypes_1 = checkPropTypes;
431
-
432
- var printWarning$1 = function() {};
433
-
434
- if (process.env.NODE_ENV !== 'production') {
435
- printWarning$1 = function(text) {
436
- var message = 'Warning: ' + text;
437
- if (typeof console !== 'undefined') {
438
- console.error(message);
439
- }
440
- try {
441
- // --- Welcome to debugging React ---
442
- // This error was thrown as a convenience so that you can use this stack
443
- // to find the callsite that caused this warning to fire.
444
- throw new Error(message);
445
- } catch (x) {}
446
- };
447
- }
448
-
449
- function emptyFunctionThatReturnsNull() {
450
- return null;
451
- }
452
-
453
- var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
454
- /* global Symbol */
455
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
456
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
457
-
458
- /**
459
- * Returns the iterator method function contained on the iterable object.
460
- *
461
- * Be sure to invoke the function with the iterable as context:
462
- *
463
- * var iteratorFn = getIteratorFn(myIterable);
464
- * if (iteratorFn) {
465
- * var iterator = iteratorFn.call(myIterable);
466
- * ...
467
- * }
468
- *
469
- * @param {?object} maybeIterable
470
- * @return {?function}
471
- */
472
- function getIteratorFn(maybeIterable) {
473
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
474
- if (typeof iteratorFn === 'function') {
475
- return iteratorFn;
476
- }
477
- }
478
-
479
- /**
480
- * Collection of methods that allow declaration and validation of props that are
481
- * supplied to React components. Example usage:
482
- *
483
- * var Props = require('ReactPropTypes');
484
- * var MyArticle = React.createClass({
485
- * propTypes: {
486
- * // An optional string prop named "description".
487
- * description: Props.string,
488
- *
489
- * // A required enum prop named "category".
490
- * category: Props.oneOf(['News','Photos']).isRequired,
491
- *
492
- * // A prop named "dialog" that requires an instance of Dialog.
493
- * dialog: Props.instanceOf(Dialog).isRequired
494
- * },
495
- * render: function() { ... }
496
- * });
497
- *
498
- * A more formal specification of how these methods are used:
499
- *
500
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
501
- * decl := ReactPropTypes.{type}(.isRequired)?
502
- *
503
- * Each and every declaration produces a function with the same signature. This
504
- * allows the creation of custom validation functions. For example:
505
- *
506
- * var MyLink = React.createClass({
507
- * propTypes: {
508
- * // An optional string or URI prop named "href".
509
- * href: function(props, propName, componentName) {
510
- * var propValue = props[propName];
511
- * if (propValue != null && typeof propValue !== 'string' &&
512
- * !(propValue instanceof URI)) {
513
- * return new Error(
514
- * 'Expected a string or an URI for ' + propName + ' in ' +
515
- * componentName
516
- * );
517
- * }
518
- * }
519
- * },
520
- * render: function() {...}
521
- * });
522
- *
523
- * @internal
524
- */
525
-
526
- var ANONYMOUS = '<<anonymous>>';
527
-
528
- // Important!
529
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
530
- var ReactPropTypes = {
531
- array: createPrimitiveTypeChecker('array'),
532
- bigint: createPrimitiveTypeChecker('bigint'),
533
- bool: createPrimitiveTypeChecker('boolean'),
534
- func: createPrimitiveTypeChecker('function'),
535
- number: createPrimitiveTypeChecker('number'),
536
- object: createPrimitiveTypeChecker('object'),
537
- string: createPrimitiveTypeChecker('string'),
538
- symbol: createPrimitiveTypeChecker('symbol'),
539
-
540
- any: createAnyTypeChecker(),
541
- arrayOf: createArrayOfTypeChecker,
542
- element: createElementTypeChecker(),
543
- elementType: createElementTypeTypeChecker(),
544
- instanceOf: createInstanceTypeChecker,
545
- node: createNodeChecker(),
546
- objectOf: createObjectOfTypeChecker,
547
- oneOf: createEnumTypeChecker,
548
- oneOfType: createUnionTypeChecker,
549
- shape: createShapeTypeChecker,
550
- exact: createStrictShapeTypeChecker,
551
- };
552
-
553
- /**
554
- * inlined Object.is polyfill to avoid requiring consumers ship their own
555
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
556
- */
557
- /*eslint-disable no-self-compare*/
558
- function is(x, y) {
559
- // SameValue algorithm
560
- if (x === y) {
561
- // Steps 1-5, 7-10
562
- // Steps 6.b-6.e: +0 != -0
563
- return x !== 0 || 1 / x === 1 / y;
564
- } else {
565
- // Step 6.a: NaN == NaN
566
- return x !== x && y !== y;
567
- }
568
- }
569
- /*eslint-enable no-self-compare*/
570
-
571
- /**
572
- * We use an Error-like object for backward compatibility as people may call
573
- * PropTypes directly and inspect their output. However, we don't use real
574
- * Errors anymore. We don't inspect their stack anyway, and creating them
575
- * is prohibitively expensive if they are created too often, such as what
576
- * happens in oneOfType() for any type before the one that matched.
577
- */
578
- function PropTypeError(message, data) {
579
- this.message = message;
580
- this.data = data && typeof data === 'object' ? data: {};
581
- this.stack = '';
582
- }
583
- // Make `instanceof Error` still work for returned errors.
584
- PropTypeError.prototype = Error.prototype;
585
-
586
- function createChainableTypeChecker(validate) {
587
- if (process.env.NODE_ENV !== 'production') {
588
- var manualPropTypeCallCache = {};
589
- var manualPropTypeWarningCount = 0;
590
- }
591
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
592
- componentName = componentName || ANONYMOUS;
593
- propFullName = propFullName || propName;
594
-
595
- if (secret !== ReactPropTypesSecret_1) {
596
- if (throwOnDirectAccess) {
597
- // New behavior only for users of `prop-types` package
598
- var err = new Error(
599
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
600
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
601
- 'Read more at http://fb.me/use-check-prop-types'
602
- );
603
- err.name = 'Invariant Violation';
604
- throw err;
605
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
606
- // Old behavior for people using React.PropTypes
607
- var cacheKey = componentName + ':' + propName;
608
- if (
609
- !manualPropTypeCallCache[cacheKey] &&
610
- // Avoid spamming the console because they are often not actionable except for lib authors
611
- manualPropTypeWarningCount < 3
612
- ) {
613
- printWarning$1(
614
- 'You are manually calling a React.PropTypes validation ' +
615
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
616
- 'and will throw in the standalone `prop-types` package. ' +
617
- 'You may be seeing this warning due to a third-party PropTypes ' +
618
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
619
- );
620
- manualPropTypeCallCache[cacheKey] = true;
621
- manualPropTypeWarningCount++;
622
- }
623
- }
624
- }
625
- if (props[propName] == null) {
626
- if (isRequired) {
627
- if (props[propName] === null) {
628
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
629
- }
630
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
631
- }
632
- return null;
633
- } else {
634
- return validate(props, propName, componentName, location, propFullName);
635
- }
636
- }
637
-
638
- var chainedCheckType = checkType.bind(null, false);
639
- chainedCheckType.isRequired = checkType.bind(null, true);
640
-
641
- return chainedCheckType;
642
- }
643
-
644
- function createPrimitiveTypeChecker(expectedType) {
645
- function validate(props, propName, componentName, location, propFullName, secret) {
646
- var propValue = props[propName];
647
- var propType = getPropType(propValue);
648
- if (propType !== expectedType) {
649
- // `propValue` being instance of, say, date/regexp, pass the 'object'
650
- // check, but we can offer a more precise error message here rather than
651
- // 'of type `object`'.
652
- var preciseType = getPreciseType(propValue);
653
-
654
- return new PropTypeError(
655
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
656
- {expectedType: expectedType}
657
- );
658
- }
659
- return null;
660
- }
661
- return createChainableTypeChecker(validate);
662
- }
663
-
664
- function createAnyTypeChecker() {
665
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
666
- }
667
-
668
- function createArrayOfTypeChecker(typeChecker) {
669
- function validate(props, propName, componentName, location, propFullName) {
670
- if (typeof typeChecker !== 'function') {
671
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
672
- }
673
- var propValue = props[propName];
674
- if (!Array.isArray(propValue)) {
675
- var propType = getPropType(propValue);
676
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
677
- }
678
- for (var i = 0; i < propValue.length; i++) {
679
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
680
- if (error instanceof Error) {
681
- return error;
682
- }
683
- }
684
- return null;
685
- }
686
- return createChainableTypeChecker(validate);
687
- }
688
-
689
- function createElementTypeChecker() {
690
- function validate(props, propName, componentName, location, propFullName) {
691
- var propValue = props[propName];
692
- if (!isValidElement(propValue)) {
693
- var propType = getPropType(propValue);
694
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
695
- }
696
- return null;
697
- }
698
- return createChainableTypeChecker(validate);
699
- }
700
-
701
- function createElementTypeTypeChecker() {
702
- function validate(props, propName, componentName, location, propFullName) {
703
- var propValue = props[propName];
704
- if (!reactIs.isValidElementType(propValue)) {
705
- var propType = getPropType(propValue);
706
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
707
- }
708
- return null;
709
- }
710
- return createChainableTypeChecker(validate);
711
- }
712
-
713
- function createInstanceTypeChecker(expectedClass) {
714
- function validate(props, propName, componentName, location, propFullName) {
715
- if (!(props[propName] instanceof expectedClass)) {
716
- var expectedClassName = expectedClass.name || ANONYMOUS;
717
- var actualClassName = getClassName(props[propName]);
718
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
719
- }
720
- return null;
721
- }
722
- return createChainableTypeChecker(validate);
723
- }
724
-
725
- function createEnumTypeChecker(expectedValues) {
726
- if (!Array.isArray(expectedValues)) {
727
- if (process.env.NODE_ENV !== 'production') {
728
- if (arguments.length > 1) {
729
- printWarning$1(
730
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
731
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
732
- );
733
- } else {
734
- printWarning$1('Invalid argument supplied to oneOf, expected an array.');
735
- }
736
- }
737
- return emptyFunctionThatReturnsNull;
738
- }
739
-
740
- function validate(props, propName, componentName, location, propFullName) {
741
- var propValue = props[propName];
742
- for (var i = 0; i < expectedValues.length; i++) {
743
- if (is(propValue, expectedValues[i])) {
744
- return null;
745
- }
746
- }
747
-
748
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
749
- var type = getPreciseType(value);
750
- if (type === 'symbol') {
751
- return String(value);
752
- }
753
- return value;
754
- });
755
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
756
- }
757
- return createChainableTypeChecker(validate);
758
- }
759
-
760
- function createObjectOfTypeChecker(typeChecker) {
761
- function validate(props, propName, componentName, location, propFullName) {
762
- if (typeof typeChecker !== 'function') {
763
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
764
- }
765
- var propValue = props[propName];
766
- var propType = getPropType(propValue);
767
- if (propType !== 'object') {
768
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
769
- }
770
- for (var key in propValue) {
771
- if (has(propValue, key)) {
772
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
773
- if (error instanceof Error) {
774
- return error;
775
- }
776
- }
777
- }
778
- return null;
779
- }
780
- return createChainableTypeChecker(validate);
781
- }
782
-
783
- function createUnionTypeChecker(arrayOfTypeCheckers) {
784
- if (!Array.isArray(arrayOfTypeCheckers)) {
785
- process.env.NODE_ENV !== 'production' ? printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
786
- return emptyFunctionThatReturnsNull;
787
- }
788
-
789
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
790
- var checker = arrayOfTypeCheckers[i];
791
- if (typeof checker !== 'function') {
792
- printWarning$1(
793
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
794
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
795
- );
796
- return emptyFunctionThatReturnsNull;
797
- }
798
- }
799
-
800
- function validate(props, propName, componentName, location, propFullName) {
801
- var expectedTypes = [];
802
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
803
- var checker = arrayOfTypeCheckers[i];
804
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1);
805
- if (checkerResult == null) {
806
- return null;
807
- }
808
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
809
- expectedTypes.push(checkerResult.data.expectedType);
810
- }
811
- }
812
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
813
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
814
- }
815
- return createChainableTypeChecker(validate);
816
- }
817
-
818
- function createNodeChecker() {
819
- function validate(props, propName, componentName, location, propFullName) {
820
- if (!isNode(props[propName])) {
821
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
822
- }
823
- return null;
824
- }
825
- return createChainableTypeChecker(validate);
826
- }
827
-
828
- function invalidValidatorError(componentName, location, propFullName, key, type) {
829
- return new PropTypeError(
830
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
831
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
832
- );
833
- }
834
-
835
- function createShapeTypeChecker(shapeTypes) {
836
- function validate(props, propName, componentName, location, propFullName) {
837
- var propValue = props[propName];
838
- var propType = getPropType(propValue);
839
- if (propType !== 'object') {
840
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
841
- }
842
- for (var key in shapeTypes) {
843
- var checker = shapeTypes[key];
844
- if (typeof checker !== 'function') {
845
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
846
- }
847
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
848
- if (error) {
849
- return error;
850
- }
851
- }
852
- return null;
853
- }
854
- return createChainableTypeChecker(validate);
855
- }
856
-
857
- function createStrictShapeTypeChecker(shapeTypes) {
858
- function validate(props, propName, componentName, location, propFullName) {
859
- var propValue = props[propName];
860
- var propType = getPropType(propValue);
861
- if (propType !== 'object') {
862
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
863
- }
864
- // We need to check all keys in case some are required but missing from props.
865
- var allKeys = objectAssign({}, props[propName], shapeTypes);
866
- for (var key in allKeys) {
867
- var checker = shapeTypes[key];
868
- if (has(shapeTypes, key) && typeof checker !== 'function') {
869
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
870
- }
871
- if (!checker) {
872
- return new PropTypeError(
873
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
874
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
875
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
876
- );
877
- }
878
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
879
- if (error) {
880
- return error;
881
- }
882
- }
883
- return null;
884
- }
885
-
886
- return createChainableTypeChecker(validate);
887
- }
888
-
889
- function isNode(propValue) {
890
- switch (typeof propValue) {
891
- case 'number':
892
- case 'string':
893
- case 'undefined':
894
- return true;
895
- case 'boolean':
896
- return !propValue;
897
- case 'object':
898
- if (Array.isArray(propValue)) {
899
- return propValue.every(isNode);
900
- }
901
- if (propValue === null || isValidElement(propValue)) {
902
- return true;
903
- }
904
-
905
- var iteratorFn = getIteratorFn(propValue);
906
- if (iteratorFn) {
907
- var iterator = iteratorFn.call(propValue);
908
- var step;
909
- if (iteratorFn !== propValue.entries) {
910
- while (!(step = iterator.next()).done) {
911
- if (!isNode(step.value)) {
912
- return false;
913
- }
914
- }
915
- } else {
916
- // Iterator will provide entry [k,v] tuples rather than values.
917
- while (!(step = iterator.next()).done) {
918
- var entry = step.value;
919
- if (entry) {
920
- if (!isNode(entry[1])) {
921
- return false;
922
- }
923
- }
924
- }
925
- }
926
- } else {
927
- return false;
928
- }
929
-
930
- return true;
931
- default:
932
- return false;
933
- }
934
- }
935
-
936
- function isSymbol(propType, propValue) {
937
- // Native Symbol.
938
- if (propType === 'symbol') {
939
- return true;
940
- }
941
-
942
- // falsy value can't be a Symbol
943
- if (!propValue) {
944
- return false;
945
- }
946
-
947
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
948
- if (propValue['@@toStringTag'] === 'Symbol') {
949
- return true;
950
- }
951
-
952
- // Fallback for non-spec compliant Symbols which are polyfilled.
953
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
954
- return true;
955
- }
956
-
957
- return false;
958
- }
959
-
960
- // Equivalent of `typeof` but with special handling for array and regexp.
961
- function getPropType(propValue) {
962
- var propType = typeof propValue;
963
- if (Array.isArray(propValue)) {
964
- return 'array';
965
- }
966
- if (propValue instanceof RegExp) {
967
- // Old webkits (at least until Android 4.0) return 'function' rather than
968
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
969
- // passes PropTypes.object.
970
- return 'object';
971
- }
972
- if (isSymbol(propType, propValue)) {
973
- return 'symbol';
974
- }
975
- return propType;
976
- }
977
-
978
- // This handles more types than `getPropType`. Only used for error messages.
979
- // See `createPrimitiveTypeChecker`.
980
- function getPreciseType(propValue) {
981
- if (typeof propValue === 'undefined' || propValue === null) {
982
- return '' + propValue;
983
- }
984
- var propType = getPropType(propValue);
985
- if (propType === 'object') {
986
- if (propValue instanceof Date) {
987
- return 'date';
988
- } else if (propValue instanceof RegExp) {
989
- return 'regexp';
990
- }
991
- }
992
- return propType;
993
- }
994
-
995
- // Returns a string that is postfixed to a warning about an invalid type.
996
- // For example, "undefined" or "of type array"
997
- function getPostfixForTypeWarning(value) {
998
- var type = getPreciseType(value);
999
- switch (type) {
1000
- case 'array':
1001
- case 'object':
1002
- return 'an ' + type;
1003
- case 'boolean':
1004
- case 'date':
1005
- case 'regexp':
1006
- return 'a ' + type;
1007
- default:
1008
- return type;
1009
- }
1010
- }
1011
-
1012
- // Returns class name of the object, if any.
1013
- function getClassName(propValue) {
1014
- if (!propValue.constructor || !propValue.constructor.name) {
1015
- return ANONYMOUS;
1016
- }
1017
- return propValue.constructor.name;
1018
- }
1019
-
1020
- ReactPropTypes.checkPropTypes = checkPropTypes_1;
1021
- ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
1022
- ReactPropTypes.PropTypes = ReactPropTypes;
1023
-
1024
- return ReactPropTypes;
1025
- };
1026
-
1027
- function emptyFunction() {}
1028
- function emptyFunctionWithReset() {}
1029
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1030
-
1031
- var factoryWithThrowingShims = function() {
1032
- function shim(props, propName, componentName, location, propFullName, secret) {
1033
- if (secret === ReactPropTypesSecret_1) {
1034
- // It is still safe when called from React.
1035
- return;
1036
- }
1037
- var err = new Error(
1038
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1039
- 'Use PropTypes.checkPropTypes() to call them. ' +
1040
- 'Read more at http://fb.me/use-check-prop-types'
1041
- );
1042
- err.name = 'Invariant Violation';
1043
- throw err;
1044
- } shim.isRequired = shim;
1045
- function getShim() {
1046
- return shim;
1047
- } // Important!
1048
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1049
- var ReactPropTypes = {
1050
- array: shim,
1051
- bigint: shim,
1052
- bool: shim,
1053
- func: shim,
1054
- number: shim,
1055
- object: shim,
1056
- string: shim,
1057
- symbol: shim,
1058
-
1059
- any: shim,
1060
- arrayOf: getShim,
1061
- element: shim,
1062
- elementType: shim,
1063
- instanceOf: getShim,
1064
- node: shim,
1065
- objectOf: getShim,
1066
- oneOf: getShim,
1067
- oneOfType: getShim,
1068
- shape: getShim,
1069
- exact: getShim,
1070
-
1071
- checkPropTypes: emptyFunctionWithReset,
1072
- resetWarningCache: emptyFunction
1073
- };
1074
-
1075
- ReactPropTypes.PropTypes = ReactPropTypes;
1076
-
1077
- return ReactPropTypes;
1078
- };
1079
-
1080
- var propTypes = createCommonjsModule(function (module) {
1081
- /**
1082
- * Copyright (c) 2013-present, Facebook, Inc.
1083
- *
1084
- * This source code is licensed under the MIT license found in the
1085
- * LICENSE file in the root directory of this source tree.
1086
- */
1087
-
1088
- if (process.env.NODE_ENV !== 'production') {
1089
- var ReactIs = reactIs;
1090
-
1091
- // By explicitly using `prop-types` you are opting into new development behavior.
1092
- // http://fb.me/prop-types-in-prod
1093
- var throwOnDirectAccess = true;
1094
- module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1095
- } else {
1096
- // By explicitly using `prop-types` you are opting into new production behavior.
1097
- // http://fb.me/prop-types-in-prod
1098
- module.exports = factoryWithThrowingShims();
1099
- }
1100
- });
1101
-
1102
3
  var defaultCt = {
1103
4
  map: null
1104
5
  };
@@ -1258,25 +159,6 @@ var MFBuilding = function MFBuilding(props) {
1258
159
  return null;
1259
160
  };
1260
161
 
1261
- MFBuilding.propTypes = {
1262
- position: propTypes.any.isRequired,
1263
- name: propTypes.string,
1264
- scale: propTypes.number,
1265
- bearing: propTypes.number,
1266
- elevation: propTypes.number,
1267
- height: propTypes.number,
1268
- model: propTypes.string,
1269
- texture: propTypes.string,
1270
- coordinates: propTypes.array,
1271
- visible: propTypes.bool,
1272
- draggable: propTypes.bool,
1273
- userInteractionEnabled: propTypes.bool,
1274
- selected: propTypes.bool,
1275
- growUp: propTypes.bool,
1276
- map: propTypes.any,
1277
- onCreated: propTypes.func
1278
- };
1279
-
1280
162
  var MFBuildingOverlay = function MFBuildingOverlay(props) {
1281
163
  var getUrl = props.getUrl,
1282
164
  visible = props.visible,
@@ -1344,15 +226,6 @@ var MFBuildingOverlay = function MFBuildingOverlay(props) {
1344
226
  return null;
1345
227
  };
1346
228
 
1347
- MFBuildingOverlay.propTypes = {
1348
- getUrl: propTypes.func.isRequired,
1349
- visible: propTypes.bool,
1350
- parserData: propTypes.func.isRequired,
1351
- prefixId: propTypes.string,
1352
- map: propTypes.any,
1353
- onCreated: propTypes.func
1354
- };
1355
-
1356
229
  var VariableTool = function VariableTool() {};
1357
230
 
1358
231
  VariableTool.hasValue = function (variable) {
@@ -1510,22 +383,6 @@ var MFCircle = function MFCircle(props) {
1510
383
  return null;
1511
384
  };
1512
385
 
1513
- MFCircle.propTypes = {
1514
- center: propTypes.any.isRequired,
1515
- radius: propTypes.number.isRequired,
1516
- fillColor: propTypes.string,
1517
- fillOpacity: propTypes.number,
1518
- visible: propTypes.bool,
1519
- strokeColor: propTypes.string,
1520
- strokeWidth: propTypes.number,
1521
- draggable: propTypes.bool,
1522
- zIndex: propTypes.number,
1523
- elevation: propTypes.number,
1524
- userInteractionEnabled: propTypes.bool,
1525
- map: propTypes.any,
1526
- onCreated: propTypes.func
1527
- };
1528
-
1529
386
  var MFDataLayer = function MFDataLayer(props) {
1530
387
  var geoJsonString = props.geoJsonString,
1531
388
  map = props.map,
@@ -1565,12 +422,6 @@ var MFDataLayer = function MFDataLayer(props) {
1565
422
  return null;
1566
423
  };
1567
424
 
1568
- MFDataLayer.propTypes = {
1569
- geoJsonString: propTypes.string.isRequired,
1570
- map: propTypes.any,
1571
- onCreated: propTypes.func
1572
- };
1573
-
1574
425
  var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
1575
426
  var routes = props.routes,
1576
427
  activedIndex = props.activedIndex,
@@ -1696,27 +547,6 @@ var MFDirectionsRenderer = function MFDirectionsRenderer(props) {
1696
547
  return null;
1697
548
  };
1698
549
 
1699
- MFDirectionsRenderer.propTypes = {
1700
- routes: propTypes.any,
1701
- activedIndex: propTypes.number,
1702
- activeStrokeWidth: propTypes.number,
1703
- activeStrokeColor: propTypes.string,
1704
- activeOutlineWidth: propTypes.number,
1705
- activeOutlineColor: propTypes.string,
1706
- activeStrokePattern: propTypes.any,
1707
- inactiveStrokeWidth: propTypes.number,
1708
- inactiveStrokeColor: propTypes.string,
1709
- inactiveOutlineWidth: propTypes.number,
1710
- inactiveOutlineColor: propTypes.string,
1711
- inactiveStrokePattern: propTypes.any,
1712
- originMarkerOptions: propTypes.any,
1713
- destinationMarkerOptions: propTypes.any,
1714
- waypointMarkerOptions: propTypes.any,
1715
- onMarkerDragEnd: propTypes.func,
1716
- map: propTypes.any,
1717
- onCreated: propTypes.func
1718
- };
1719
-
1720
550
  var MFGroundOverlay = function MFGroundOverlay(props) {
1721
551
  var bounds = props.bounds,
1722
552
  getUrl = props.getUrl,
@@ -1800,17 +630,6 @@ var MFGroundOverlay = function MFGroundOverlay(props) {
1800
630
  return null;
1801
631
  };
1802
632
 
1803
- MFGroundOverlay.propTypes = {
1804
- bounds: propTypes.any.isRequired,
1805
- getUrl: propTypes.func.isRequired,
1806
- override: propTypes.bool,
1807
- visible: propTypes.bool,
1808
- zIndex: propTypes.number,
1809
- opacity: propTypes.number,
1810
- map: propTypes.any,
1811
- onCreated: propTypes.func
1812
- };
1813
-
1814
633
  var MFImageOverlay = function MFImageOverlay(props) {
1815
634
  var url = props.url,
1816
635
  bounds = props.bounds,
@@ -1887,16 +706,6 @@ var MFImageOverlay = function MFImageOverlay(props) {
1887
706
  return null;
1888
707
  };
1889
708
 
1890
- MFImageOverlay.propTypes = {
1891
- url: propTypes.any.isRequired,
1892
- bounds: propTypes.func.isRequired,
1893
- visible: propTypes.bool,
1894
- zIndex: propTypes.number,
1895
- opacity: propTypes.number,
1896
- map: propTypes.any,
1897
- onCreated: propTypes.func
1898
- };
1899
-
1900
709
  function _extends() {
1901
710
  _extends = Object.assign ? Object.assign.bind() : function (target) {
1902
711
  for (var i = 1; i < arguments.length; i++) {
@@ -2024,7 +833,7 @@ var MFMap = /*#__PURE__*/function (_React$Component) {
2024
833
  };
2025
834
 
2026
835
  _proto.render = function render() {
2027
- var url = "https://api.map4d.vn/sdk/map/js?version=" + this.props.version + "&key=" + this.props.accessKey + "&callback=" + this.callback;
836
+ var url = "https://api" + (this.props.environment ? "-" + this.props.environment : "") + ".map4d.vn/sdk/map/js?version=" + this.props.version + "&key=" + this.props.accessKey + "&callback=" + this.callback;
2028
837
 
2029
838
  if (this.props.mapid) {
2030
839
  url += "&mapId=" + this.props.mapid;
@@ -2231,26 +1040,6 @@ var MFMarker = function MFMarker(props) {
2231
1040
  return null;
2232
1041
  };
2233
1042
 
2234
- MFMarker.propTypes = {
2235
- position: propTypes.any.isRequired,
2236
- visible: propTypes.bool,
2237
- anchor: propTypes.any,
2238
- labelAnchor: propTypes.any,
2239
- icon: propTypes.any,
2240
- elevation: propTypes.number,
2241
- rotation: propTypes.number,
2242
- title: propTypes.string,
2243
- snippet: propTypes.string,
2244
- windowAnchor: propTypes.any,
2245
- zIndex: propTypes.number,
2246
- label: propTypes.any,
2247
- draggable: propTypes.bool,
2248
- iconView: propTypes.oneOfType([propTypes.instanceOf(Node), propTypes.string]),
2249
- userInteractionEnabled: propTypes.bool,
2250
- map: propTypes.any,
2251
- onCreated: propTypes.func
2252
- };
2253
-
2254
1043
  var MFMarkerCluster = function MFMarkerCluster(props) {
2255
1044
  var _props$minZoom = props.minZoom,
2256
1045
  minZoom = _props$minZoom === void 0 ? 0 : _props$minZoom,
@@ -2344,15 +1133,6 @@ var MFMarkerCluster = function MFMarkerCluster(props) {
2344
1133
  }, props === null || props === void 0 ? void 0 : props.children);
2345
1134
  };
2346
1135
 
2347
- MFMarkerCluster.propTypes = {
2348
- minZoom: propTypes.number,
2349
- maxZoom: propTypes.number,
2350
- radius: propTypes.number,
2351
- zoomOnClick: propTypes.bool,
2352
- map: propTypes.any,
2353
- onCreated: propTypes.func
2354
- };
2355
-
2356
1136
  var MFPOI = function MFPOI(props) {
2357
1137
  var position = props.position,
2358
1138
  title = props.title,
@@ -2478,22 +1258,6 @@ var MFPOI = function MFPOI(props) {
2478
1258
  return null;
2479
1259
  };
2480
1260
 
2481
- MFPOI.propTypes = {
2482
- position: propTypes.any.isRequired,
2483
- title: propTypes.string,
2484
- subtitle: propTypes.string,
2485
- color: propTypes.string,
2486
- type: propTypes.string,
2487
- icon: propTypes.string,
2488
- elevation: propTypes.number,
2489
- zIndex: propTypes.number,
2490
- visible: propTypes.bool,
2491
- draggable: propTypes.bool,
2492
- userInteractionEnabled: propTypes.bool,
2493
- map: propTypes.any,
2494
- onCreated: propTypes.func
2495
- };
2496
-
2497
1261
  var MFPOIOverlay = function MFPOIOverlay(props) {
2498
1262
  var getUrl = props.getUrl,
2499
1263
  _props$visible = props.visible,
@@ -2562,15 +1326,6 @@ var MFPOIOverlay = function MFPOIOverlay(props) {
2562
1326
  return null;
2563
1327
  };
2564
1328
 
2565
- MFPOIOverlay.propTypes = {
2566
- getUrl: propTypes.func.isRequired,
2567
- visible: propTypes.bool,
2568
- parserData: propTypes.func.isRequired,
2569
- prefixId: propTypes.string,
2570
- map: propTypes.any,
2571
- onCreated: propTypes.func
2572
- };
2573
-
2574
1329
  var MFPolygon = function MFPolygon(props) {
2575
1330
  var paths = props.paths,
2576
1331
  fillColor = props.fillColor,
@@ -2687,21 +1442,6 @@ var MFPolygon = function MFPolygon(props) {
2687
1442
  return null;
2688
1443
  };
2689
1444
 
2690
- MFPolygon.propTypes = {
2691
- paths: propTypes.any.isRequired,
2692
- fillColor: propTypes.string,
2693
- fillOpacity: propTypes.number,
2694
- visible: propTypes.bool,
2695
- strokeColor: propTypes.string,
2696
- strokeWidth: propTypes.number,
2697
- draggable: propTypes.number,
2698
- elevation: propTypes.number,
2699
- zIndex: propTypes.number,
2700
- userInteractionEnabled: propTypes.bool,
2701
- map: propTypes.any,
2702
- onCreated: propTypes.func
2703
- };
2704
-
2705
1445
  var MFPolyline = function MFPolyline(props) {
2706
1446
  var path = props.path,
2707
1447
  strokeWidth = props.strokeWidth,
@@ -2828,22 +1568,6 @@ var MFPolyline = function MFPolyline(props) {
2828
1568
  return null;
2829
1569
  };
2830
1570
 
2831
- MFPolyline.propTypes = {
2832
- path: propTypes.any.isRequired,
2833
- strokeWidth: propTypes.number,
2834
- strokeColor: propTypes.string,
2835
- strokeOpacity: propTypes.number,
2836
- visible: propTypes.bool,
2837
- closed: propTypes.bool,
2838
- draggable: propTypes.bool,
2839
- zIndex: propTypes.number,
2840
- elevation: propTypes.number,
2841
- strokePattern: propTypes.any,
2842
- userInteractionEnabled: propTypes.bool,
2843
- map: propTypes.any,
2844
- onCreated: propTypes.func
2845
- };
2846
-
2847
1571
  var MFTileOverlay = function MFTileOverlay(props) {
2848
1572
  var getUrl = props.getUrl,
2849
1573
  _props$visible = props.visible,
@@ -2927,14 +1651,5 @@ var MFTileOverlay = function MFTileOverlay(props) {
2927
1651
  return null;
2928
1652
  };
2929
1653
 
2930
- MFTileOverlay.propTypes = {
2931
- getUrl: propTypes.func.isRequired,
2932
- visible: propTypes.bool,
2933
- zIndex: propTypes.number,
2934
- opacity: propTypes.number,
2935
- map: propTypes.any,
2936
- onCreated: propTypes.func
2937
- };
2938
-
2939
1654
  export { MFBuilding, MFBuildingOverlay, MFCircle, MFDataLayer, MFDirectionsRenderer, MFGroundOverlay, MFImageOverlay, MFMap, MFMarker, MFMarkerCluster, MFPOI, MFPOIOverlay, MFPolygon, MFPolyline, MFTileOverlay };
2940
1655
  //# sourceMappingURL=index.modern.js.map