appbaseio / appbaseio/reactivesearch

Enhancement: URLParams props for ReactiveMap component

未关闭
#450 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement good first issue :wave: help wanted maps :world_map:
主要语言
JavaScript
星标
4.9k
派生
478
PR 合并指标
30 天内没有已合并 PR

描述

**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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。