Giter Site home page Giter Site logo

techjb / vector-tiles-google-maps Goto Github PK

View Code? Open in Web Editor NEW
38.0 2.0 11.0 2.15 MB

JavaScript library to render vector tiles in Google Maps.

Home Page: https://github.com/techjb/Vector-Tiles-Google-Maps

License: Other

C# 2.88% JavaScript 97.12%
vector-tiles google-maps-api google-maps mapbox pbf mvt mbtiles

vector-tiles-google-maps's Introduction

  • 👋 Hi, I’m Jesús Barrio, spanish developer and entrepreneur.
  • 👀 I’m interested in gis, programming, startups and life observations.
  • 🌱 I’m currently learning how to reduce my bills and increase income.
  • 📫 In twitter I'm @techjb.
  • 🤓 I created Goolzoom.com

vector-tiles-google-maps's People

Contributors

cyriellec avatar iamtekson avatar techjb 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

Watchers

 avatar  avatar

vector-tiles-google-maps's Issues

Radio used instead of Radius

Hi! First, let me say thank you for all your hard work creating this fantastic library! Great stuff!

I was attempting to add a zoom level dependent radius to a point layer and ran into a language issue. You used 'radio' instead of radius (Spanish instead of English). It was easy enough for me to realize what was going on but, if you're going for consistency, the English word should be used. I can submit a pull request if you'd like.

Thanks again for the wonderful library!

Uncaught Error: read uint

Capture

Thanks for this library. I am trying to load a vector tile layer generated from PostGIS. The layer works fine within a mapboxgl js client but I receive the error in the screenshot when trying to add it in one of the samples in the repo.
function InitVectorTiles() {
var options = {
url: "http://localhost:7800/public.testlayer/{z}/{x}/{y}.pbf",
debug: true
};
var mvtSource = new MVTSource(map, options);
map.overlayMapTypes.insertAt(0, mvtSource);

Thanks

Draw Point Text

Buenas, querría saber si es posible implementar una funcionalidad para que cuando pintemos un punto, se pueda pasar un texto para que se pinte el texto. Viendo el código, la parte de Feature hay un _DrawPoint, igual ahí es donde habría que controlar esto. Saludos.

Error with tileSize = 512

Hi.
If I use tileSize=512 then need to fix getTileId function in MVTSource, change parameter zoom to zoom-1
getTileId(zoom, x, y) { return [zoom - 1, x, y].join(":"); }

npm package

Couldnt this be added to npm so we can use it in our React/Angular etc apps?

Capability to Add Predefined Style URL

Hi @techjb

Appreciate your work on this, just wondering whether I can use this library to add predefined MVT Style that I already have. So in my use case, I have defined a style in a JSON and I have this JSON is accessible from an internal web URL that I setup previously. Can I use that URL so that it can render the Vector Tile maps correctly?

Thank you

Using onMouseHover unsets multiple selection

When using onMouseHover, multiple selection is set to false and your selection if multiple is lost at any refresh like zoom (only one tile is left selected though they were multiple before refresh).

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.