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