【问题标题】:What's the difference between the components ReactMapGL and MapGL in the react-map-gl library?react-map-gl 库中的组件 ReactMapGL 和 MapGL 有什么区别?
【发布时间】:2019-07-07 15:11:38
【问题描述】:

我无法理解组件 ReactMapGL 和 react-map-gl 库中组件 MapGL 的区别。文档没有解释,它们似乎具有相同的属性。

https://uber.github.io/react-map-gl/#/Documentation/getting-started/adding-custom-data 即使是示例也会间歇性地使用它们

【问题讨论】:

    标签: reactjs react-map-gl


    【解决方案1】:

    没有区别,它们(ReactMapGlMapGL)只是默认导出 InteractiveMap 组件的普通名称。

    即使根据 react-map-gl 的来源:

    【讨论】:

      猜你喜欢
      • 2017-03-18
      • 1970-01-01
      • 1970-01-01
      • 2020-05-01
      • 1970-01-01
      • 2016-12-24
      • 2023-03-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多