google-maps - Google KML 导入替换图标
问题描述
我有带有自定义图标的地图https://www.google.com/maps/d/u/0/edit?mid=1iwhgwHJgtmYOS6PokVdvTqTgpB51xCAg&usp=sharing 导入 KML 图标后变成这个https://www.gstatic.com/mapspro /images/stock/503-wht-blank_maps.png
有结果 KML
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>test map</name>
<description/>
<Style id="icon-1594-7CB342-nodesc-normal">
<IconStyle>
<color>ff42b37c</color>
<scale>1</scale>
<Icon>
<href>https://www.gstatic.com/mapspro/images/stock/503-wht-blank_maps.png</href>
</Icon>
</IconStyle>
<LabelStyle>
<scale>0</scale>
</LabelStyle>
<BalloonStyle>
<text><![CDATA[<h3>$[name]</h3>]]></text>
</BalloonStyle>
</Style>
<Style id="icon-1594-7CB342-nodesc-highlight">
<IconStyle>
<color>ff42b37c</color>
<scale>1</scale>
<Icon>
<href>https://www.gstatic.com/mapspro/images/stock/503-wht-blank_maps.png</href>
</Icon>
</IconStyle>
<LabelStyle>
<scale>1</scale>
</LabelStyle>
<BalloonStyle>
<text><![CDATA[<h3>$[name]</h3>]]></text>
</BalloonStyle>
</Style>
<StyleMap id="icon-1594-7CB342-nodesc">
<Pair>
<key>normal</key>
<styleUrl>#icon-1594-7CB342-nodesc-normal</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#icon-1594-7CB342-nodesc-highlight</styleUrl>
</Pair>
</StyleMap>
<Folder>
<name>Campings</name>
<Placemark>
<name>Ein Yarkam camping</name>
<styleUrl>#icon-1594-7CB342-nodesc</styleUrl>
<Point>
<coordinates>
35.039418,30.945092,0
</coordinates>
</Point>
</Placemark>
</Folder>
</Document>
</kml>
解决方案
推荐阅读
- flutter - 导航到不同屏幕时如何使用 PageTransitionsBuilder?
- html - 使用 R 更快地抓取网页
- node.js - 将 API 响应与自身进行比较
- c# - Windows 窗体程序集
- sql - 如何从 1 个表中选择多行并插入到另一个表中特定行的特定 JSONB 字段中?但在单个原始 SQL 查询中
- python - 尝试区分按钮,因为两个按钮有一个类名
- python - 如何高效构建句子级倒排索引?
- verilog - bluespec编译的文件头
- google-cloud-platform - 通过 Node-RED 对 http 请求进行 Google Bearer 身份验证
- ruby-on-rails - TinyMCE w/Rails 6 和 webpacker - 没有图标,turbolinks