4.1.0 • Published 9 days ago

volto-venue v4.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 days ago

volto-venue

An addon for Volto as a frontend for collective.venue

To be used with mrs-developer, see Volto docs for further usage informations.

Usage

If you're using Volto < 12, then use v2.0.1

If you're using Volto < 16, then use v3.2.0

You can use this in combination with collective.venue and it will work out of the box, otherwise you can define a field called geolocation or add the geolocation widget on a custom field.

import { GeoLocationWidget } from 'volto-venue';

config.widgets.id = {
  ...config.widgets.id,
  geolocation: GeoLocationWidget,
};

Screenshot

screenshot volto-venue

GeolocationWidget

This widget allows to compile a form with an address data, or use the map to select a point using coordinates.

OSMMap

This component shows a map from OpenStreetMap. Accepts these props:

PropTypeDefaultDescription
centerarraymarkers0Array containing latitude as the first element and longitude as the second one
markersobject[]Array of objects with the structure: { latitude: number, latitude: number, title: string }
zoomnumber15Map zoom
onMarkerDragEndfunc() => {}Callback to handle marker position change on the map
draggablebooleanfalseEnables dragging the marker on the map
showTooltipbooleanfalseShows a tooltip with the title on the marker
showPopupbooleanfalseShows a popup on marker click. Content of popup will be passed in marker object in popupContent prop.
clusterbooleanfalseTo show clusters on map if you have a lot of points.
4.1.0

9 days ago

4.0.1

1 year ago

4.0.0

2 years ago

4.0.2

1 year ago

3.2.0

2 years ago

3.1.2

3 years ago

3.1.1

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago

0.1.0

3 years ago

3.1.0

3 years ago