您试试在这个范例页面加载您地图的url看能不能正常加载:https://iclient.supermap.io/examples/openlayers/editor.html#01_tiledMapLayer4326
怀疑是您地图视图没设置正确,我用以下代码是能正常加载的:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>OpenLayers Map Example</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v7.2.2/ol.css"> <style> .map { width: 100%; height: 800px; } </style> </head> <body> <div id="map" class="map"></div> <script src="https://cdn.jsdelivr.net/npm/ol@v7.2.2/dist/ol.js"></script> <script> var map = new ol.Map({ target: 'map', layers: [ new ol.layer.Tile({ source: new ol.source.XYZ({ url: 'https://iserver.supermap.io/iserver/services/map-world/rest/maps/World/zxyTileImage.png?z={z}&x={x}&y={y}&width=256&height=256', }) }) ], view: new ol.View({ center: [0, 0], zoom: 2 }) }); </script> </body> </html>