Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter nameDescriptionDefaults by instance
instance

Override default config by config prepared for instance.

Default: pl

Available: pl,uk,it


apiEndpoint

URL to API Points which will be connected to Geowidget

pl: https://api-pl-points.easypack24.net/v1
uk: https://api-uk-points.easypack24.net/v1
it: https://api-it-points.easypack24.net/v1
defaultLocale

Geowidget language that will be uses in front-end.

Available: pl,uk

pl: pl
uk: uk
locales

Languages that will be display as list in front layer. They can be dynamically changed.

pl: ['pl']
uk: ['uk'] 
mobileSize
Screen width below which mobile version is triggered.
768
langSelection
Determines if language selection bar should be displayed.
false
filters

Determines if filters (functions) bar should be displayed.

false
addressFormat

Visible format of address

'{street} {building_number} <br> {post_code} {city}'
listItemFormat
Visible format of address on list


Code Block
languagetext
collapsetrue
[
	"<b>{name}</b>",
	"{address_details.street} {address_details.building_number}"
]


display
Enable/disable visible type filters and search bar


Code Block
languagetext
collapsetrue
{
	showTypesFilters: true,
	showSearchBar: true,
}


mapType

Setup map type, available to use Open Street Map or Google Maps.

Available: osm, google

Info

For 'google' option map.googleKey is required.


'osm'
searchType

Setup search type, available to use Open Street Map Nominatim or Google Maps Autocomplete.

Available: osm, google

Info

For 'google' option map.googleKey is required.


'osm'
map
Setup map details.


Code Block
languagetext
collapsetrue
{
	googleKey: '', // required to use Google Maps API
	useGeolocation: true,
	initialZoom: 13,
	detailsMinZoom: 15, // minimum zoom after marker click
	autocompleteZoom: 14,
	visiblePointsMinZoom: 13,
	defaultLocation: [52.229807, 21.011595],
    initialTypes: ['pop', 'parcel_locker'], // which type should be selected by default. Options: parcel_locker_only, parcel_locker, pop
}


points

Setup points details

Available functions:

parcel - points with functions send and collect 
parcel_send - points with functions send only
parcel_collect - points with functions collect only


Code Block
languagetext
collapsetrue
{
	types: ['pop', 'parcel_locker'],  # Options: parcel_locker_only, parcel_locker, pop     
    allowedToolTips: ['pok', 'pop'],
    functions: []
}


customDetailsCallback

Allows to set custom callback for details action

Available: function(point){...}, false

false
customMapAndListInRow
Allow to change layout where list of point is below map. Points on list were paginated, number of point per page can be configured.


Code Block
languagetext
collapsetrue
{
	enabled: false,
	itemsPerPage: 8
}


listItemFormat
Allows to change default layout of point information on points list.


Code Block
languagetext
collapsetrue
[
	"<b>{name}</b>",
	"<strong>{address_details.street}</strong> {address_details.building_number}"
]


mobileFiltersAsCheckbox

Option set to false make filter option as radio in mobile, option true as checkobx.

true
paymentFilter

visible:false,

#zezwala na wyświetlenie filtra płatnosć w paczkomaciew Paczkomat®

defaultEnabled: false,

#włączony filtr dla płatności w paczkomacie w Paczkomat® już przy inicjalizacji

showOnlyWithPayment: false

#wymusza pokazywanie obiektów tylko z płatnością w paczkomaciew Paczkomat®

False

Getting selected point data

...