appbaseio/reactivesearch

Enhancement: URLParams props for ReactiveMap component

開放

#450 建立於 2018年7月16日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (487 個分叉)batch import
enhancementgood first issue :wave:help wantedmaps :world_map:

倉庫指標

星標
 (4,835 顆星)
PR 合併指標
 (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

貢獻者指南