Freeze work item location after it is created

This commit is contained in:
John Lyon-Smith
2018-05-15 10:03:12 -07:00
parent 77ed56ddf5
commit 8fcfa26063

View File

@@ -334,12 +334,16 @@ export class WorkItem extends React.Component {
height: 400, height: 400,
marginBottom: 10, marginBottom: 10,
}} }}
zoomControlEnabled={false}
zoomEnabled={!binder._id}
scrollEnabled={!binder._id}
rotateEnabled={false}
pitchEnabled={false}
showsUserLocation showsUserLocation
showsBuildings={false} showsBuildings={false}
showsTraffic={false} showsTraffic={false}
showsIndoors={false} showsIndoors={false}
zoomControlEnabled={false} cacheEnabled
rotateEnabled={false}
initialRegion={config.initialRegion} initialRegion={config.initialRegion}
onRegionChange={this.handleRegionChange} onRegionChange={this.handleRegionChange}
onMapReady={this.handleOnMapReady} onMapReady={this.handleOnMapReady}