Appsemble 0.12.3
Getting Started
Guide
Architecture
Blocks
Action buttonButton listData loaderDetail viewerFeedFilterFormListMapIntroductionActionsParametersEventsImagesMarkdownStatsTable
Development
Deployment
Reference

Map

Introduction

A block that displays a map powered by OpenStreetMap that can be used to display and interact with markers.

Markers can be loaded from external sources or from Appsemble’s resource API.

Markers that are too close to each other to be visually distinguishable will be clustered by default.

Actions

ActionRequiredDescription
onMarkerClickfalseAction that gets dispatched when a marker is clicked.

Parameters

ParameterDefaultDescription
longitudelongitudeThe name of the field used to retrieve the longitude
latitudelatitudeThe name of the field used to retrieve the latitude
disableClusteringfalseWhether clustering should be disabled or not.
maxClusterRadius80The maximum radius that a cluster will cover from the central marker (in pixels). Decreasing will make more, smaller clusters.

Events

Emit Events

EventDescription
moveEvent that gets emitted when moving the map around. Will apply OData filters to limit the range of items fetched. This will be skipped if the move emit event is not defined.

Listen Events

EventDescription
dataThe event that is triggered when data is received. Compatible data that is received will be displayed. Must be a set of data.

Images

Map screenshot