mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
changed custom position field
This commit is contained in:
parent
d8832ed8da
commit
5de37323d4
@ -35,7 +35,7 @@ const mapDivRef = React.createRef();
|
||||
function UtopiaMap({
|
||||
height = "500px",
|
||||
width = "100%",
|
||||
center = new LatLng(50.6, 9.5),
|
||||
center = [50.6, 9.5],
|
||||
zoom = 10,
|
||||
children }
|
||||
: UtopiaMapProps) {
|
||||
@ -79,7 +79,7 @@ function UtopiaMap({
|
||||
<ItemsProvider initialItems={[]}>
|
||||
<LeafletRefsProvider initialLeafletRefs={{}}>
|
||||
<div className={(selectNewItemPosition != null ? "crosshair-cursor-enabled" : undefined)}>
|
||||
<MapContainer ref={mapDivRef} style={{ height: height, width: width }} center={center} zoom={zoom} zoomControl={false}>
|
||||
<MapContainer ref={mapDivRef} style={{ height: height, width: width }} center={new LatLng(center[0],center[1])} zoom={zoom} zoomControl={false}>
|
||||
<Control position='topLeft' zIndex="1000">
|
||||
<SearchControl clusterRef={clusterRef} />
|
||||
<TagsControl />
|
||||
|
||||
@ -4,7 +4,7 @@ import { ItemFormPopupProps } from "./Components/Map/Subcomponents/ItemFormPopup
|
||||
export interface UtopiaMapProps {
|
||||
height?: string,
|
||||
width?: string,
|
||||
center?: LatLng,
|
||||
center?: [number,number],
|
||||
zoom?: number,
|
||||
tags?: Tag[],
|
||||
children?: React.ReactNode,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user