Configuration for marker clustering
Determines whether marker clustering is enabled
The configuration options will be passed to MarkerClusterer
The configuration options will be passed to Leaflet.markercluster
The spacing between map controllers
Allows to customize the positions of various controls in your application
{
* zoomX: EControllersPosition.TOP_RIGHT,
* view: EControllersPosition.TOP_RIGHT,
* draw: EControllersPosition.RIGHT_TOP,
* layers: EControllersPosition.RIGHT_TOP
* }
The data that will be displayed on the map
Note: This is only for demo purpose
The default center coordinates of the map. It specifies the initial latitude and longitude to center the map when it loads. The value should be an object with the lat and lng properties representing the latitude and longitude, respectively. Alternatively, it can be set to null to allow the map to load based on the coordinates of the markers and the map's bounds will be automatically adjusted to fit the marker data.
Required if setting defaultZoom
The default view of the map. It specifies the initial view of the map when it loads. The value can be either 'map' or 'satellite'.
The default zoom level of the map. It specifies the initial zoom level when the map loads.
Note: defaultZoom
can only be set if defaultCenter
is defined.
Configuration for the drawn shape
style: {
strokeColor: "#e74c3c",
strokeOpacity: 0.9,
strokeWeight: 4,
fillColor: "transparent",
fillOpacity: 0
},
payload: null
The initial payload of the drawn shape
The style options for the drawn shape.
The ID of the HTML element where the map will be rendered.
The Map ID of the Google Map if using Google Maps. This is required for advanced marker functionality.
The key in the data source representing the unique identifier of each marker
Configuration for info windows
Note: To populate the content of the info window, you can use either the dataKey
option or the render
function. Only one of them should be filled, and if both are provided, the render function takes priority **
The key in the data source representing the latitude of each marker
The option allows to configure different layers for the map. Each layer can have its own settings, including the layer type, visibility, label, zoom level, and fetch callback
Optional
neighbourhoods?: Partial<Omit<TMapynaLayer, "markerStyles">>Optional
schools?: Partial<TMapynaLayer>Optional
zipcodes?: Partial<Omit<TMapynaLayer, "markerStyles">>Configuration for loading indicator
The class name of the loading indicator
The position of the loading indicator
The spacing between the loading indicator and the map
The key in the data source representing the longitude of each marker
An array of marker styles
Configuration for showing custom messages on the map
The key in the data source representing the price of each marker
A function that renders the price marker
Determines whether RealityFeed integration is enabled
Configuration options for RealityFeed integration
Optional
apiThe base URL of the RealityFeed API
Optional
layers?: { Allows to override specific layer options with the RF data. When the rfEnabled option is set to true, the layer options specified within the layers property will override the corresponding options in the main layers option of the library config
Optional
neighbourhoods?: Partial<Pick<TMapynaLayer, Optional
schools?: Partial<Pick<TMapynaLayer, Optional
zipcodes?: Partial<Pick<TMapynaLayer, The authentication token for the RealityFeed API
Note: If the token is not provided, the map will not be able to fetch the data from the API
An Object contains URLs of external scripts required for the library
URL of the Google Maps MarkerClusterer library
URL of the Google Maps MarkerSpiderfier library
URL of the CSS file for the default MarkerClusterer style
URL of the Leaflet MarkerClusterer library
URL of the CSS file for the Leaflet MarkerClusterer
Determines whether the scroll wheel zoom functionality is enabled.
Configuration for spiderfying
Note: Only available in Google Map
Determines whether spiderfying is enabled
The options for spiderfying
{
markersWontMove: true,
markersWontHide: true,
keepSpiderfied: true,
circleSpiralSwitchover : 9,
spiralFootSeparation: 26,
spiralLengthStart: 11,
spiralLengthFactor: 4,
circleFootSeparation: 23,
nearbyDistance: 20
}
zoom value to start spiderfying
Determines whether the map zooms to the drawn shape after drawing is completed.
Determines whether the freehand drawing mode creates closed shapes (polygons) during the drawing process. By default, the closedFreehand option is set to false, indicating that the shapes are open (polylines) during the drawing process