Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

MKMapViewMBS class

Super class: NSViewMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class MapKit MBS MacFrameworks Plugin 14.1 Yes No No Yes, macOS only No
Function: An MKMapView object provides an embeddable map interface, similar to the one provided by the Maps application.
You use this class as-is to display map information and to manipulate the map contents from your application. You can center the map on a given coordinate, specify the size of the area you want to display, and annotate the map with custom information.

In the IDE we show a generic map image as preview as the control itself doesn't perform well inside the Xojo IDE.
Subclass of the NSViewMBS class.

Feedback, Comments & Corrections


Constant Value Description
ErrorDirectionsNotFound 4 The specified directions could not be found.
ErrorLoadingThrottled 2 The data was not loaded because data throttling is in effect.
This error can occur if an app makes frequent requests for data over a short period of time.
ErrorPlacemarkNotFound 3 The specified placemark could not be found.
ErrorServerFailure 1 The map server was unable to return the desired information.
ErrorUnknown 0 An unknown error occurred.

Feature visibility

Constant Value Description
FeatureVisibilityAdaptive 0 For features in the normal state, title text is displayed and subtitle text is hidden. When a feature is selected, the title and subtitle text are hidden when the feature requires a callout.
FeatureVisibilityHidden 1 Always hidden.
FeatureVisibilityVisible 2 Always visible.

Map Types

Constant Value Description
MapTypeHybrid 2 Displays a satellite image of the area with road and road name information layered on top.
MapTypeHybridFlyover 4 A hybrid satellite image with flyover data where available.
MapTypeMutedStandard 5 A street map where your data is emphasized over the underlying map details.
MapTypeSatellite 1 Displays satellite imagery of the area.
MapTypeSatelliteFlyover 3 A satellite image of the area with flyover data where available.
MapTypeStandard 0 Displays a street map that shows the position of all roads and some road names.

Overlay Levels

Constant Value Description
OverlayLevelAboveLabels 1 Above labels
OverlayLevelAboveRoads 0 Above roads

Super class NSViewMBS

Window Order Constants

Constant Value Description
NSWindowAbove 1 Moves the window above the indicated window.
NSWindowBelow -1 Moves the window below the indicated window.
NSWindowOut 0 Moves the window off the screen.

Super class NSResponderMBS

This class has no sub classes.

Some properties using for this class:

Some events for this class:

Some examples which use this class:

Blog Entries

The items on this page are in the following plugins: MBS MacBase Plugin, MBS MacFrameworks Plugin.

MKMapSnapshotterMBS   -   MKMultiPointMBS

MBS Xojo PDF Plugins