这个很简单,想要显示或隐藏任意类型的地图对象,首先要对地图对象进行分类。不同类型的地图对象放置到不同的地图图层上,然后控制地图图层的显示/隐藏即可。

  实例:

Layer sportsLayer  = mapWidget.getLayerById(SPORTS_LAYER);
sportsLayer.setVisible(true); // Shows the layer
sportsLayer.setVisible(false); // Hides the layer

 

相关文章:

  • 2021-08-07
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-11-11
猜你喜欢
  • 2021-06-29
  • 2022-02-24
  • 2022-01-03
  • 2021-09-15
  • 2021-07-19
  • 2022-01-12
  • 2022-01-25
相关资源
相似解决方案