Platforms to show: All Mac Windows Linux Cross-Platform

MKMapViewMBS class

Super class: NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class MapKit MBS MacFrameworks Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
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.

Errors

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

Constants

Constant Value Description
NSBezelBorder 2 One of the constants to specify the type of a view's border. A concave border that makes the view look sunken.
NSFocusRingTypeDefault 0 One of the constants for the focusringtype property. The default focus ring type for NSView or NSCell.
NSFocusRingTypeExterior 2 One of the constants for the focusringtype property. The standard Aqua focus ring.
NSFocusRingTypeNone 1 One of the constants for the focusringtype property. No focus ring. If you set the focus ring type to this value, NSView and NSCell will not draw any focus ring.
NSGrooveBorder 3 One of the constants to specify the type of a view's border. A thin border that looks etched around the image.
NSLineBorder 1 One of the constants to specify the type of a view's border. A black line border around the view.
NSNoBorder 0 One of the constants to specify the type of a view's border. No border.
NSViewHeightSizable 16 One of the constants for the autoresizingMask property. The receiver's height is flexible.
NSViewLayerContentsRedrawBeforeViewResize 3 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawDuringViewResize 2 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawNever 0 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawOnSetNeedsDisplay 1 One of the view layer content redraw policy constants.
NSViewMaxXMargin 4 One of the constants for the autoresizingMask property. The right margin between the receiver and its superview is flexible.
NSViewMaxYMargin 32 One of the constants for the autoresizingMask property. The top margin between the receiver and its superview is flexible.
NSViewMinXMargin 1 One of the constants for the autoresizingMask property. The left margin between the receiver and its superview is flexible.
NSViewMinYMargin 8 One of the constants for the autoresizingMask property. The bottom margin between the receiver and its superview is flexible.
NSViewNotSizable 0 One of the constants for the autoresizingMask property. The receiver cannot be resized.
NSViewWidthSizable 2 One of the constants for the autoresizingMask property. The receiver's width is flexible.

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 using this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Videos

Release notes

  • Version 22.4
    • Added withOverlays parameter to ShowAllAnnotations method in MKMapViewMBS class.
  • Version 22.0
  • Version 20.4
  • Version 20.1
    • Changed ShowAddress method in MKMapViewMBS to use the region size to zoom.
  • Version 19.5
    • Added setCenterCoordinate and setZoomLevel to zoom in MKMapViewMBS class.
    • Added zoomLevel property to MKMapViewMBS class.
    • Fixed bug in ZoomLevel in MKMapViewMBS class to increase precision.
  • Version 19.3
    • Fixed MKMapViewMBS.showAddress method to correctly center on the found placemark instead of the region for that placemark.

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


MKMapSnapshotterMBS   -   MKMarkerAnnotationViewMBS


The biggest plugin in space...