Javascript Globe API的自定义标记图标

Javascript Globe API的自定义标记图标,javascript,Javascript,经过长时间的搜索,我发现没有选项来设置标记图标。我现在正试图用两种不同的类型来绘制我的标记。我需要通过使用两个单独的图标清晰地显示它,是否有任何选项可以在Globe中设置自定义标记图标。更快的反应将是非常有帮助的,因为我在最后期限的边缘 我使用的是简单的globeapi var earth = new WE.map('earth_div'); WE.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').a

经过长时间的搜索,我发现没有选项来设置标记图标。我现在正试图用两种不同的类型来绘制我的标记。我需要通过使用两个单独的图标清晰地显示它,是否有任何选项可以在Globe中设置自定义标记图标。更快的反应将是非常有帮助的,因为我在最后期限的边缘

我使用的是简单的globeapi

    var earth = new WE.map('earth_div');
      WE.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(earth);

    {% for last_place_marker in last_place_markers %}
    var marker = WE.marker([{{last_place_marker.destination_lat}}, {{last_place_marker.destination_longit}}]).addTo(earth);
    marker.bindPopup("<b>{{last_place_marker.destinaton}}</b><br>{{last_place_marker.when}}<br /><span style='font-size:10px;color:#999'>{{last_place_marker.description}}</span>", {maxWidth: 150, closeButton: true});
    //.openPopup()
    {% endfor %}

    {% for target_marker in target_markers %}
    {% if target_marker.target_destination_lat %}

        var marker = WE.marker([{{target_marker.target_destination_lat}}, {{target_marker.target_destination_longit}}]).addTo(earth);
        marker.bindPopup("<b>{{target_marker.target}}</b><br>{{target_marker.when}}<br /><span style='font-size:10px;color:#999'>{{target_marker.description}}</span>", {maxWidth: 150, closeButton: true});
        //.openPopup()
    {% endif %}
    {% endfor %}

    earth.setView([25, 79], 2.5);
var earth=new WE.map('earth_div');
WE.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(地球);
{last_place_markers%中last_place_markers%的百分比}
var marker=WE.marker([{last\u place\u marker.destination\u lat}},{{last\u place\u marker.destination\u longit}]).addTo(地球);
bindpoop({last\u place\u marker.destinaton}
{{last\u place\u marker.when}
{last\u place\u marker.description},{maxWidth:150,closeButton:true}); //.openPopup() {%endfor%} {target_markers%}中的target_marker%为% {%if target_marker.target_destination_lat%} var marker=WE.marker([{{target\u marker.target\u destination\u lat},{{{target\u marker.target\u destination\u longit}]).addTo(地球); bindpoop({{target\u marker.target}
{{target\u marker.when}
{{{target\u marker.description}},{maxWidth:150,closeButton:true}); //.openPopup() {%endif%} {%endfor%} 地球。setView([25,79],2.5);
Globe API是一个开源API,它不会提供自定义标记图标,打开谷歌地图将是更好的选择。

您可以用CSS样式更改值


.we pm图标{
背景图片:url(http://madridhoy.info/imagejpg.php?url=http://campinadigital.me/wp-content/uploads/2020/06/160620 planas.jpg&rs=1)!重要;
}