Giter Site home page Giter Site logo

dfalling / lit-google-map Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arkadiuszwojcik/lit-google-map

0.0 0.0 0.0 396 KB

This project is port of google-map webcomponent based on LitElement library

License: MIT License

JavaScript 2.44% TypeScript 97.56%

lit-google-map's People

Contributors

arkadiuszwojcik avatar dependabot[bot] avatar dfalling avatar elijahbrandyberry avatar

Watchers

 avatar  avatar

lit-google-map's Issues

Fit to bounds behaving erratically

Fit to bounds is often zoomed in too far, excluding numerous markers. This happens for me on a complicated page on load. If I navigate to that page or do something to trigger recalculation of the bounds, it will work. This comment in stackoverflow suggests you need to wait for the map to be idle before setting the bounds.

Calculated bounds:
234323205-91904b06-f2fa-4d81-82c9-a03bfc18d090

Numerous items outside of the bounds:
234323204-306b5c28-3558-4425-8bd0-13209b3cee44

Map still not fitting to markers correctly

I've hit another scenario where the map isn't being centered correctly. Need to debug the dimensions to see if we need another check before calculating the bounds.

Before:

Bolivia _ Ido

After re-calling center map:

Bolivia _ Ido (1)

Add eslint

Add eslint with suggested rules to ensure basic code quality.

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.