Improve traffic layer update logic

Open
#302 1 comment 0 reactions 1 assignee View on GitHub

@Trufi is already working on this.

Since Oct 15, 2015.

Assessment

This issue has not been assessed yet.

Description

feature request

Мы никак не учитываем заголовки, которые приходят от сервиса пробок.
Сейчас возможна проблема рассинхрона тайлов пробок на разных зумлевелах.

Как воспроизвести:

  1. Зайти на 2gis.ru
  2. Включить отображение пробок
  3. Zoom-in на несколько зумов вглубь
  4. Zoom-out назад
  5. Подождать обновления тайлов:
    тайлы на текущем зуме периодически обновляются, но при смене зума, мы увидим не обновленные тайлы

Пути решения проблемы:

Простой
Уменьшить период обновления тайлов с 5 минут до 1 минуты.

Сложный
Вычитывать заголовок expires при запросе бальности и обновлять тайлы пробок согласно этому заголовку.

Dominant language
JavaScript
Stars
212
Forks
36
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 2gis/mapsapi

All issues in 2gis/mapsapi

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.