Openlayers combat: loading WMS data published by geoserver

WMS (Web Map Service) is the most widely used and simplest form for displaying GIS data on the Web. It offers several advantages, including the ability to provide a geospatial view of GIS data. WMS provides visualization of data with basic query options over the internet. WMS provides basic zooming, panning, and helps organizations deliver GIS data as images at fast rendering speeds. It is an ideal solution for dynamic data and custom maps (need to be combined with SLD standards), and dynamically generates data-rendered pictures on the server side according to the request range and returns them to the client side.

In the actual combat of Openlayers, we use the WMS released by geoserver as an example demonstration to load the tile data.

renderings

insert image description here

source code

/*
* @Author: 大剑师兰特(xiaozhuanlan),还是大剑师兰特(CSDN)
* @此源代码版权归大剑师兰特所有,可供学习或商业项目中借鉴,未经授权,不得重复地发表到博客、论坛,问答,git等公共空间或网站中。
* @Email: [email protected]
* @First published in CSDN
* @First published time: 2023-07-20
*/
<template>
	

Guess you like

Origin blog.csdn.net/cuclife/article/details/131787854
Recommended