如何在Leaflet ImageOverlay中使用base64字符串而不是URL

时间:2018-03-05 10:12:39

标签: javascript angularjs leaflet

我正在使用ImageOverlay图层使用Leaflet在地图上打印叠加图像。如果我使用可在线访问的图像,即使用Leaflet example

var imageUrl = 'http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',
    imageBounds = [[40.712216, -74.22655], [40.773941, -74.12544]];
L.imageOverlay(imageUrl, imageBounds).addTo(map);
一切正常。 然而,我想使用base64编码的字符串作为图像。此字符串在我的脚本中的其他位置预先计算。

我应该如何插入这样的字符串而不是URL路径?

PS:我正在使用 angularjs

1 个答案:

答案 0 :(得分:5)

只需将base64编码的图片字符串作为Reviews struct { ReviewCommentsHistory []reviewCommentsHistory `json:"reviewCommentsHistory" bson:"reviewCommentsHistory"` } `json:"Reviews" bson:"Reviews"` 的第一个参数传递,即代替L.imageOverlay



imageUrl

var map = L.map('map');

var imageUrl = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAlgCWAAD/2wBDAAMCAgMCAgMDAgMDAwMDBAcFBAQEBAkGBwUHCgkLCwoJCgoMDREODAwQDAoKDhQPEBESExMTCw4UFhQSFhESExL/2wBDAQMDAwQEBAgFBQgSDAoMEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhL/wAARCAB/AKIDASIAAhEBAxEB/8QAHQAAAgIDAQEBAAAAAAAAAAAABQYEBwACAwgBCf/EAEQQAAICAQMDAwIFAQUEBQ0AAAECAwQFBhESABMhByIxFEEIFSMyUUIkM1JhcRYlQ4EXcpGj0zVEYmRzgoSSk6Gx0dL/xAAWAQEBAQAAAAAAAAAAAAAAAAAAAQL/xAAcEQEBAQEAAwEBAAAAAAAAAAAAAREhEjFRAkH/2gAMAwEAAhEDEQA/AP0e1JfvRajnir37UMEVGFxBCY1CkvJyclh/6KjyQvjYlSd+kPX2qNaac/K81py+LtCxZ+isYa8RAsqE7CzHZWFnilMhEaxyKyNuP2nd+njVcM9jPTwUZf7Vbr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7bfeKb5/wDm6XJNDahv6wTMZLMxtX/sqtj0nmNaIQyiRnjiJ27jlUUsxOwXwBud50WIPgdZ1gB2HnrOtaP/2Q==';
var imageBounds = [
  [40.712216, -74.22655],
  [40.773941, -74.12544]
];
L.imageOverlay(imageUrl, imageBounds).addTo(map);

map.fitBounds(imageBounds);

L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
  attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
&#13;
&#13;
&#13;