react-map-gl 库中的组件 ReactMapGL 和 MapGL 有什么区别?
What's the difference between the components ReactMapGL and MapGL in the react-map-gl library?
我无法理解react-map-gl 库中组件ReactMapGL 和组件MapGL 之间的区别。文档没有解释,它们似乎具有相同的属性。
https://uber.github.io/react-map-gl/#/Documentation/getting-started/adding-custom-data连例子都断断续续地用到它们
没什么区别,它们(ReactMapGl
和 MapGL
)只是默认导出 InteractiveMap
组件的普通名称。
甚至根据 react-map-gl 的来源:
我无法理解react-map-gl 库中组件ReactMapGL 和组件MapGL 之间的区别。文档没有解释,它们似乎具有相同的属性。
https://uber.github.io/react-map-gl/#/Documentation/getting-started/adding-custom-data连例子都断断续续地用到它们
没什么区别,它们(ReactMapGl
和 MapGL
)只是默认导出 InteractiveMap
组件的普通名称。
甚至根据 react-map-gl 的来源: