export const getImgSrc = (visitChannelLongitude, visitChannelLatitude) => {
if (!ak) {
ak = localStorage.getItem(BAIDU_MAP_AK);
}
return `https://api.map.baidu.com/staticimage/v2?ak=${ak}&width=320&height=200¢er=${visitChannelLongitude},${visitChannelLatitude}&zoom=17&markers=${visitChannelLongitude},${visitChannelLatitude}&markerStyles=m,,0xea3626`;
};
export const getMapAdress = (visitChannelLongitude, visitChannelLatitude, title, content) => {
return `http://api.map.baidu.com/marker?location=${visitChannelLatitude},${visitChannelLongitude}&title=${title}&content=${content}&output=html`;
};
版权声明:本文为weixin_49409651原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。