buche / leaflet-openweathermap

A JavaScript library for including OpenWeatherMap's layers and OWM's current city/station data in leaflet based maps without hassle.
259 stars 132 forks source link

No Data is displayed on map. #22

Closed tvjmohan closed 7 years ago

tvjmohan commented 7 years ago

hi,

i am using this application from 2 years. but this time i seen that map is not showing any data. No check box is showing data.

image

in console i can see error.

image

but i can see responce from openweather map.

image

please help me to solve this.

buche commented 7 years ago

I've got many problems receiving tiles from OWM, but because of timeouts on OWM's side. BUt having an invalit LatLng object is new to me. I'll investigate on this, but be patient, please.

tvjmohan commented 7 years ago

HI buche, Thank you for your reply.

image in the above path leaflet.js in this file.

at lines

"if (t = parseFloat(t), e = parseFloat(e), isNaN(t) || isNaN(e)) throw new Error("Invalid LatLng object: (" + t + ", " + e + ")"); " we are getting last 2 variables as undefined, undefined. t and e are coming as undefined.

for this reason its is going to "INVALID LATLAN OBJECT:(....."

i tried to resolve this many ways, but not able to get it fixed.

Hope you will come up with solution , Thank you.

buche commented 7 years ago

That's the leaflet library from https://github.com/Leaflet/Leaflet I'll update it to the newest version in a few days. Maybe this helps.

buche commented 7 years ago

Just released v1.0.4: OWM now needs an AppId even for tile layers and OWM changed attribute name for coordinates.

Please check if it works again for you.

tvjmohan commented 7 years ago

Hey buche, Thank you so much. everything is set. working. thank you again.