Currently the main map has a call back to find the user location, so desired structure is
map -> user location -> state -> props -> icon layer -> json (user loc)
but what is happening is
map -> state -> props -> icon layer -> json (default loc)
So either force update icon layer on map change or make call in icon layer.
Currently the main map has a call back to find the user location, so desired structure is map -> user location -> state -> props -> icon layer -> json (user loc) but what is happening is map -> state -> props -> icon layer -> json (default loc) So either force update icon layer on map change or make call in icon layer.