样例如下:
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>等值线的生成</title> <link href="Script/leaflet/leaflet.css" rel="stylesheet" /> <style> #map { height: 2000px; width: 1500px; } </style> <script src="Script/leaflet/leaflet.js"></script> <script src="Script/leaflet/leaflet.ChineseTmsProviders.js"></script> <script src='https://npmcdn.com/@turf/turf/turf.min.js'></script> </head> <body> <div id="map"></div> </body> <script> var normalm = L.tileLayer.chinaProvider('TianDiTu.Normal.Map', { maxZoom: 18, minZoom: 1 }), normala = L.tileLayer.chinaProvider(&