Separate pins & listings
This commit is contained in:
@@ -86,6 +86,13 @@ const listingsLoaded = ({ type, action }, component) => {
|
||||
});
|
||||
};
|
||||
|
||||
const pinsLoaded = ({ type, action }, component) => {
|
||||
component.setState({
|
||||
}, () => {
|
||||
component.markers = action.newMarkers;
|
||||
});
|
||||
};
|
||||
|
||||
const expandDescription = ({ type, action }, component) => {
|
||||
component.setState({
|
||||
descriptionExpanded: true
|
||||
@@ -259,7 +266,8 @@ const handlers = {
|
||||
ON_LISTING_MOUSE_OVER: onListingMouseOver,
|
||||
BACK_TO_RESULTS: backToResults,
|
||||
LOAD_MORE_LISTINGS: loadMoreListings,
|
||||
MAP_IDLE: mapIdle
|
||||
MAP_IDLE: mapIdle,
|
||||
PINS_LOADED: pinsLoaded
|
||||
};
|
||||
|
||||
export const handleMessage = ({ type, action }, component) => {
|
||||
|
||||
Reference in New Issue
Block a user