google-map-thousands-markers

How to draw thousands markers with google-map-react

  • 所有者: istarkov/google-map-thousands-markers
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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

主要指标

概览
名称与所有者istarkov/google-map-thousands-markers
主编程语言JavaScript
编程语言JavaScript (语言数: 3)
平台
许可证
所有者活动
创建于2017-01-26 16:10:11
推送于2021-10-16 03:36:14
最后一次提交2017-03-09 03:31:41
发布数0
用户参与
星数80
关注者数4
派生数30
提交数9
已启用问题?
问题数3
打开的问题数3
拉请求数1
打开的拉请求数0
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?