初始化一个map,6:

 this.map = new Map({
        target: 'map_container',
        layers: [ new TileLayer({
                  source: new ol.source.OSM()
              })],
        view: new View({
          center:fromLonLat([88.434653, 31.559746]),
          zoom: 7,
          maxZoom: 15,
          minZoom: 0,
         //5的写法
         // center: [88.434653, 31.559746],
         // projection: 'EPSG:4326',
        })

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
  • 2022-01-16
  • 2021-12-27
  • 2022-12-23
  • 2022-01-29
相关资源
相似解决方案