Git Product home page Git Product logo

codegrid-js's People

Contributors

david-r-edgar avatar hlaw 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

Watchers

 avatar  avatar  avatar  avatar

codegrid-js's Issues

Full list of country and codes?

I saw on worldgrid.json all the country codes, but couldn't match to any specific descriptive country list.

I'd be happy to submit a PR/Wiki page with all country names (I'm assuming it is ISO 639-1 as the data is from OpenStreepMap. Could you please confirm that this link is correct as a source?

tile json not caching

As far as I can tell, the JSON tile files aren't being cached. You have

        if ((typeof jsonCache[cellx] !== 'undefined') &&
            (typeof jsonCache[cellx][celly] !== 'undefined') &&
            (typeof jsonCache[cellx][celly][zoom] !== 'undefined'))
        {
            // Cache hit
            console.log('cache hit');
            handleJson (x, y, jsonCache[cellx][celly][zoom], callback);
            return;
        }

But I don't see this getting set with a successfully loaded json file anywhere in the source. The closes it gets is this:

                handleJson (x, y, json[zoom], callback);
                if (typeof jsonCache[cellx] === 'undefined') {
                    jsonCache[cellx] = {};
                }
                jsonCache[cellx][celly] = json;

This is perhaps where the bug is - maybe it needs to be

                handleJson (x, y, json[zoom], callback);
                if (typeof jsonCache[cellx] === 'undefined') {
                    jsonCache[cellx] = {};
                }
                if (typeof jsonCache[cellx][celly] === 'undefined') {
                    jsonCache[cellx][celly] = {};
                }
                jsonCache[cellx][celly][zoom] = json;

I can't tell if this is intentional or not. Would be great if you could review.

Missing some tiles

When you take a look on tiles folder, I realize that it misses some tiles folder such as: 2, 12, 13; when using this library and resize browser screen at some levels, it makes the wrong result for detecting country code, so I think the reason is missing tiles as I mentioned before. So can you update them or guide me how to do that.

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.