google-map-thousands-markers

How to draw thousands markers with google-map-react

  • Owner: istarkov/google-map-thousands-markers
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

How to draw thousands markers on the map

Example of drawing 10000 animated on hover markers

The problem

With few thousands markers on the map a single hover animation over any marker will be slow.
It's not because of javascript, it's because browser can't render them fast.
All that layer composition events becomes too slow to show any single animation.

The solution

To draw markers on the html 5 canvas, and to hold a small buffer of components to draw hover events.

How to run locally

clone and cd into the project.

run

yarn
yarn run start

Why

For unknown reasons some clients don't like any clustering on the map.

PS

Example is highly unoptimized BTW it works well.
Also you can use this project as an example how to draw anything over the google-map-react

PPS

Can anybody help to explain why vendor.js is different on every rebuild

yarn run pages

Main metrics

Overview
Name With Owneristarkov/google-map-thousands-markers
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 3)
Platform
License:
所有者活动
Created At2017-01-26 16:10:11
Pushed At2021-10-16 03:36:14
Last Commit At2017-03-09 03:31:41
Release Count0
用户参与
Stargazers Count80
Watchers Count4
Fork Count30
Commits Count9
Has Issues Enabled
Issues Count3
Issue Open Count3
Pull Requests Count1
Pull Requests Open Count0
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private