为了账号安全,请及时绑定邮箱和手机立即绑定

传单很棒的标记插件抛出图标未定义错误

传单很棒的标记插件抛出图标未定义错误

慕标5832272 2021-06-18 18:06:15
我正在尝试使用 Leafet-awesome 标记插件并使用它 <!DOCTYPE html><html><head>  <title>Awesome Markers Example: Basic</title>  <meta charset="utf-8" />  <meta name="viewport" content="width=device-width, initial-scale=1.0">  <link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.0/css/font-awesome.css" rel="stylesheet">  <link rel="stylesheet" href="https://github.com/lvoogdt/Leaflet.awesome-markers/blob/2.0/develop/dist/leaflet.awesome-markers.css">  <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />  <!--[if lte IE 8]>      <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />  <![endif]--></head><body>  <div id="map" style="width: 800px; height: 600px"></div>  <script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>  <script src="https://github.com/lvoogdt/Leaflet.awesome-markers/blob/2.0/develop/dist/leaflet.awesome-markers.js"></script>  <script>    var map = L.map('map').setView([51.932994,4.509373], 14);    L.tileLayer(        'https://cartodb-basemaps-{s}.global.ssl.fastly.net/rastertiles/voyager/{z}/{x}/{y}.png',        {          maxZoom: 18,          attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, &copy; <a href="https://carto.com/attribution">CARTO</a>',        }      ).addTo(map);但是当我呈现这个时,我得到并出错无法读取未定义的属性“图标”我不知道为什么我会遇到这个错误。感谢任何帮助
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 108 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信