2.1. Intruduction for OpenLayers#
Intruduction for OpenLayers.
The code implements the function of loading a tile map (ie OpenStreetMap map) and can pan and zoom the map. When initializing a map, you need at least one view, one or more layers, and a target HTML tag for the map to load.