appbaseio / appbaseio/reactivesearch

Enhancement: URLParams props for ReactiveMap component

Aberta
#450 1 comentário 0 reações 0 responsáveis Ver no GitHub
enhancement good first issue :wave: help wanted maps :world_map:
Linguagem predominante
JavaScript
Estrelas
4.9k
Forks
478
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

**Issue Type:**

enhancement

**Platform:**

Web for Maps

**Description:**

We currently don't have a way to store the state of the map (i.e. the current center location, zoom level). This prevents capturing the accurate search state with maps.

We can use the `URLParams` prop with the ReactiveMap component (similar to how we have for ReactiveSearch components) that when set will generate a querystring param for the map's current center location and zoom level. If these params are present when opening a ReactiveSearch state, the map component will initialize the `defaultCenter` and `defaultZoom` props using these values.

**Reactivesearch version:** x.y.z

@appbaseio/reactivemaps: 2.0.0-beta-02

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.