OpenLayers - "document" 元素到底是什么

OpenLayers - What exactly is the "document" element

我使用函数 document.getElementById('...') 但我不明白 'document' 到底是什么!我试着搜索我的错误在哪里,我在放置两种类型的标记时遇到了一个大问题(有 2 个不同的 GeoJSON 文件)...

document为网页内容。您可以阅读更多 heredocument.getElementById 允许您访问特定元素(div 或其他元素)以便您可以修改其内容。

在 OpenLayers 的上下文中,人们通常会使用它在 div 中显示信息,这些信息要么覆盖在地图上,要么覆盖在页面的其他地方。