我正在尝试使用可用的leaflet javascript库在一个闪亮的应用程序中在leaflet-openweathermap地图上添加自定义天气块。我首先下载了leaflet-openweathermap.js,并将其放在应用程序路径中的www/js文件夹中。然后我注册了插件: "Leaflet.OpenWeather", sr
position) { long = position.coords.longitude;
var api= "http://api.openweathermap.org/data/2.5/weather?lat='+lat+'&lon='+long+'&appid=c873adc18574701f4fb0abe01d9278