diff options
| author | Eric <ericmabr@gmail.com> | 2023-08-01 14:04:52 -0400 |
|---|---|---|
| committer | Eric <ericmabr@gmail.com> | 2023-08-01 14:04:52 -0400 |
| commit | e1968a5f809629305f4358fe3942ad38c15e0ff2 (patch) | |
| tree | f4f91370ff6b4a53e700ed0c37be12e7e059eb9b | |
| parent | c059bdf0b2707181b4c6b7bf626f99ac33a81b58 (diff) | |
omg im so tired but yay remove pin works
| -rw-r--r-- | src/client/views/nodes/MapBox/MapBox.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/views/nodes/MapBox/MapBox.tsx b/src/client/views/nodes/MapBox/MapBox.tsx index 02fa31d9e..61296c6c8 100644 --- a/src/client/views/nodes/MapBox/MapBox.tsx +++ b/src/client/views/nodes/MapBox/MapBox.tsx @@ -826,6 +826,10 @@ export class MapBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps this.MicrosoftMaps.Events.addHandler(pushPin, 'click', (e: any) => this.pushpinClicked(pin,pushPin)); } + + @observable + pinIsSelected_TEMPORARY:boolean=false; // toggles if remove pin button appears + /* * Input: pin doc * Removes MicrosoftMaps Pushpin to the map (render) @@ -858,6 +862,7 @@ export class MapBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps backgroundColor: '#f1f3f4', enableInertia: true, supportedMapTypes:['grayscale', 'canvasLight'], + disableMapTypeSelectorMouseOver :true, // showScalebar:true // disableRoadView:true, // disableBirdseye:true @@ -919,7 +924,7 @@ export class MapBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps <input type="button" value="Search" onClick={this.bingSearch} /> {this.placePinOn ? <input type="button" value="Place Pin Mode On" onClick={this.togglePlacePin} /> : <input type="button" value="Place Pin Mode Off" onClick={this.togglePlacePin} />} - + {/* {this.pinIsSelected_TEMPORARY? <input type="button" value="Delete Pin" onClick={this.removeSelectedPin} /> : null} */} <BingMapsReact onMapReady={this.bingMapReady} bingMapsKey={bingApiKey} height="100%" mapOptions={this.bingMapOptions} width="100%" viewOptions={this.bingViewOptions}> </BingMapsReact> <div> |
