Code Monkey home page Code Monkey logo

offlinemaps's Introduction

offlinemaps's People

Contributors

sebastian-meier avatar

Stargazers

kibar avatar  avatar Ivo Lukacovic avatar Tim Butler avatar Mr. Andrey avatar krishna kumar sekar avatar Ade Fadli avatar Cris To avatar Alvaro avatar antonis kountouretis avatar Juan Carlos Méndez avatar Igor Luzhanov avatar Angus H. avatar Kumar avatar devguf avatar Luís Puhl (TG) avatar Roy Pardi avatar Fran avatar David Toy avatar Jefferson Souza avatar Bence Fodor avatar Fedir RYKHTIK avatar Jacopo Riccioni avatar Jerome Velociter avatar Michael Fairchild avatar Alex Rollin avatar

Watchers

 avatar James Cloos avatar Kumar avatar  avatar

offlinemaps's Issues

Windows Phones + base64

Just wanted to share this if someone else is struggling with the issue 😄

Seems like the Internet Explorer on Windows Phones doesn't like raw binary images, so I fixed this by converting the uint8array to base64 string in the getTileUrl function like this:

function (tx, res) {                
  var u8 = new Uint8Array(res.rows.item(0).tile_data);
  var b64encoded = btoa(String.fromCharCode.apply(null, u8)); 
  tile.src = base64Prefix + b64encoded;
}

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.