Giter Club home page Giter Club logo

leaflet-openweathermap's People

Contributors

arschmitz avatar buche avatar carlos12silva94 avatar erwantremiot avatar maxflower avatar maxservice avatar sepehr1101 avatar simonlopez avatar takutoru avatar xguaita avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leaflet-openweathermap's Issues

property 'call', 'removeControl' of undefined Leaflet 1.0.3

leaflet.js:6 Uncaught TypeError: Cannot read property 'call' of undefined
at e.whenReady (leaflet.js:6)
at e.addLayer (leaflet.js:6)
at e._onInputClick (leaflet.js:9)
at HTMLInputElement.h (leaflet.js:6)

leaflet-openweathermap.js:319 Uncaught TypeError: Cannot read property 'removeControl' of null
at e.onRemove (leaflet-openweathermap.js:319)
at e.removeLayer (leaflet.js:6)
at e._onInputClick (leaflet.js:9)
at HTMLInputElement.h (leaflet.js:6)

register in bower

Hello @buche! Great package.

I saw that it's not registered in bower. Can you register it?

I'd rather not have to fork and register it.

Thanks!

Map images missing tiles or grid rendering incorrectly.

Preview:
Screenshot 2019-03-30 23 01 00

 var humanitarian = L.tileLayer('https://tile-{s}.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
		    maxZoom: 17, attribution: ''
        });
        
        var osm = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19, attribution: '' });

        var clouds = L.OWM.clouds({showLegend: false, opacity: 0.5, appId: 'xxxx'});
        var rain   = L.OWM.rain({opacity: 0.5, appId: 'xxxx'});
        var city   = L.OWM.current({intervall: 15, lang: 'en'});

        var map = L.map('weatherradarmap', { center: new L.LatLng(app.location.latitude, app.location.longitude), zoom: 6, layers: [humanitarian] });
        var baseMaps = { "OSM Humanitarian": humanitarian };
        var overlayMaps = { "Rain": rain, "Cities": city };
        var layerControl = L.control.layers(baseMaps, overlayMaps).addTo(map);

Openweathermap by using openlayer3

Hi Buche,
I like your leaflet-openweathermap very much but unfortunately it works only with leaflet as the name says. However I would like to have it for openlayer3. I try several things but I was not able to make it work. I just need the current data for cities and stations.
Could you help me to integrate it in openlayer3 as well? Maybe it's a good issue to have it on both libraries. On the other hand I could help to translate into german.
Guido

Failed to load resource

@buche
I just downloaded and viewed it through localhost, I checked the Temperature checkbox, and console throws errors more than 100 errors, saying that
Failed to load resource: net::ERR_CONNECTION_TIMED_OUT from http://b.tile.openweathermap.org/map/temp/11/1481/947.png

I opened up the url in new tab and it keeps spinning. Is there a bug or a temporary server problem?

Also the loading of overlay tiles is really very slow.

chrome_2017-03-03_18-12-55

temp layer scale image not changed

leaflet-openweathermap has an option of switching temperature unit. When I set the temperature unit to F. Everything in map changed accordingly. However, the image that indicate temperature scale remains unchanged.

Overall, great code! Thanks.

Temperature Leaflet Layer is all Green

Specific zoom level temperature layer after updating to Leaflet 1.3.1 is all green. If I zoom in one level more or out then the temperature is fine and I had no problems prior to 1.3.1 - any idea what is going on?

image

No Data is displayed on map.

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.

legend iterator tries to print array prototypes as image sources

On line 200/201:

for (var idx in this._legendContainer) {
    var imgPath = this._legendContainer[idx];
        //...

If the Array prototype has been extended to have additional functions, those functions are returned by name as idx values. You then end up with broken image src attributes containing javascript source code from that function, for example in my case:

<div class="owm-legend-item" style="float: left; margin-right: 10px;">
<img src="function (callback) {
        var arrayClone, sections;
        sections = [];
        arrayClone = this.slice(0);
        $.each(arrayClone, (function(_this) {
       // ... etc
      }" border="0">
</div>

You could fix this pretty easily though with an isNaN check:

for (var idx in this._legendContainer) {
        if (isNan(idx)) { continue; }
        //...

via-
https://github.com/buche/leaflet-openweathermap/blob/master/leaflet-openweathermap.js#L200-L201

Increase marker transparency

My user gives me a feedback that markers on the map block the city names on the map. They also like your markers, they are informative. Would it be possible to increase transparency of the marker and use heavy border to resolve this user issue?

Thanks
Yong Liu

Cities, Stations bounding box query not working

Hi,

EDIT: I may have spoke too soon. It seems to have come back up. But I was curious if the library can be ported to use the latest version of the API anyway ?

I was trying to load your sample example page here and turn on the Cities/Stations checkbox and it does not bring up weather for cities. This used to work just fine up until last week.
http://map.comlu.com/openweathermap/

Looked at the json request and its not returning data. I suspect they killed the old end point. I tried to change the api version to 2.5 (seems like thats the current) but there is no example on their site to construct a bounding box query for v2.5. I was wondering if you would know about it?

Example query that does not work:
http://api.openweathermap.org/data/2.1/find/city?bbox=-89.4561767578125,41.76106872528616,-85.9405517578125,42.69252994883861,10&callback=L.OWM.Utils.callbacks[0]

Great leaflet port by the way!
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.