Skip to main content

Compatibility with the full SDK

Last updated: August 15, 2026 | 5 minutes read

Lite implements a subset of the official SDK's API — the same class names, method signatures, and imports for the features it covers. Apps that stay within the subset switch between the two backends with a one-line dependency change; features outside it fail at compile time. This page shows what the subset covers in practice, feature by feature, and ends with the full API-level matrix for reference.

Verified with the official examples​

The strongest compatibility proof: 28 of the official SDK examples run on Lite byte-identical — the same src/index.ts, index.html, and shared helpers as the Examples on this site, with only the @magiclane/maps-sdk dependency repointed from the official package to Lite via the npm alias:

{
"dependencies": {
"@magiclane/maps-sdk": "npm:@magiclane/maps-sdk-lite@^0.3.1"
}
}

Map display & rendering​

Work out of the box, no API token needed:

ExampleDemonstrates
hello_worldDisplay a map
center_coordinatesCenter the camera on coordinates
center_areaFit the camera to an area
map_gesturesPan, pinch, rotate, tilt gestures
map_perspective2D / 3D perspective with building extrusions
map_selectionTap-to-select objects on the map
multiview_mapMultiple map views on one page
overlapped_mapsStacked map views
display_cursor_street_nameStreet name under the cursor
draw_shapesMarkers, polylines, polygons
external_markersCustom DOM markers
marker_clustering15,000 points clustered into count pills; tap to zoom and split
assets_map_styleCustom map styles — see the styling note below

Search & places​

ExampleDemonstrates
search_locationFree-text location search
text_searchText search with a results list
search_categorySearch by POI category
what_is_nearbyNearby POIs around a position
location_wikipediaWikipedia info and images for a found place

Routing​

ExampleDemonstrates
calculate_routeBasic A→B route with alternatives
calculate_bike_routeBicycle profile
truck_profileTruck dimensions and weights
finger_routeRoute through finger-drawn points
multi_map_routingRoutes across multiple views
route_instructionsTurn-by-turn instruction list
route_profileElevation / terrain profile along a route
range_finderReachable-range isochrone
gpx_thumbnail_imageRender a GPX track and capture a thumbnail
center_trafficRoute display (routes carry no live traffic events on Lite)
public_transitPublic-transit route display

A note on map styles​

Runtime restyling works with MapLibre style JSON and with theme presets (light, dark, grayscale, … with per-color overrides). Magic Lane's binary .style files can only be rendered by the WASM engine — Lite logs this and keeps its current style.

What is not supported​

These need the WASM engine — use the full @magiclane/maps-sdk if your app depends on them:

  • Turn-by-turn navigation — live or simulated guidance, voice instructions
  • Offline maps — the content store, map downloads, voice packs
  • Real-time traffic — live traffic display and traffic-aware routing
  • 3D terrain rendering and 3D scene objects
  • Alarms, geofencing, and sensor recording — AlarmService, driver behavior analysis, activity tracking
  • Coordinate projections — UTM, MGRS, Gauss-Krüger, BNG conversions

A shared codebase still compiles against either backend for many services: the corresponding classes exist in Lite as typed stubs that throw a descriptive error when called. Symbols outside the subset are not exported at all, so importing them fails at compile time.

API-level reference: the symbol matrix​

For a precise, per-symbol answer, the matrix below is generated by comparing the exported types of both packages. Lite 0.3.x mirrors a subset of the @magiclane/maps-sdk 1.2.x surface.

StatusMeaning
✅ FullExported by Lite with every public member of the SDK symbol
🟡 PartialExported, but some SDK members are missing (listed in Notes)
🔘 StubImports compile; calling it throws a descriptive error at runtime
❌ Not availableNot exported by Lite — a named import fails to build
➕ Lite extensionLite-only addition, not present in the full SDK
note

A ✅ Full status means the type surface matches. Behavior is functionally equivalent for the documented use cases, but rendering-level details (e.g. exact label placement) can differ between the vector-tile and WASM engines.

479 exported symbols compared — 27 full, 68 partial, 19 stubs, 350 not available, 15 Lite extensions.

SymbolKindStatusNotes
AbstractGeometryImageRenderSettingsclass🔘 StubImports compile; calls throw a descriptive error
AddMarkerCollectionOptionsinterface➕ Lite extension
AddressDetailLevelenum🟡 PartialMissing: static district, static settlement, static postalCode, static streetSection, static streetLane, static streetAlley
AddressFieldenum🟡 PartialMissing: static id, static fromId, static fromString, static toActualString
AddressInfoclass🟡 PartialMissing: toJson, format, equals, getHashCode, static fromJson
AnimationTypeenum✅ Full
BikeProfileenum✅ Full
BikeProfileElectricBikeProfileclass🟡 PartialMissing: eProfile, toJson, equals, hashCode, static fromJson
BuildingsVisibilityenum✅ Full
BuildTerrainProfileclass🔘 StubImports compile; calls throw a descriptive error
CenterOnAreaOptionsinterface➕ Lite extension
CenterOnAreaRectOptionsinterface➕ Lite extension
CenterOnCoordinatesOptionsinterface➕ Lite extension
CircleGeographicAreaclass🟡 PartialMissing: fromJson, convert, reset, toJson, boundingBox, centerPoint … +7 more
Colorclass🔘 StubImports compile; calls throw a descriptive error
CommonOverlayIdenum✅ Full
Conditionsclass🟡 PartialMissing: static fromJson
ContactInfoclass🔘 StubImports compile; calls throw a descriptive error
ContactInfoFieldTypeenum🟡 PartialMissing: static bookingUrl, static openingHours, static last, static fromId
ContentStoreclass🔘 StubImports compile; calls throw a descriptive error
ContentStoreItemclass🔘 StubImports compile; calls throw a descriptive error
ContentTypeenum🟡 PartialMissing: static viewStyleHighRes, static roadMap, static humanVoice, static computerVoice, static viewStyleLowRes, static unknown
Coordinatesclass🟡 PartialMissing: copy, toJson, azimuth, copyWithMetersOffset, equals, toString … +1 more
CoverageGeometryenum🟡 PartialMissing: static fromId
DataSourceclass🟡 PartialHandles are inert (no external position ingestion). Missing: pointerId, start, stop, isStopped, dataSourceType, isDataTypeAvailable … +19 more
DataTypeenum🟡 PartialMissing: static acceleration, static attitude, static battery, static camera, static compass, static magneticField … +9 more
Daylightenum🟡 PartialMissing: static fromId
ElevationSamplesPairinterface➕ Lite extension
ExternalImageQualityenum✅ Full
ExternalInfoclass🔘 StubImports compile; calls throw a descriptive error
ExternalInfoServiceclass🔘 StubImports compile; calls throw a descriptive error
ExternalPointinterface➕ Lite extension
ExternalRendererMarkersclass🔘 StubImports compile; calls throw a descriptive error
GemAnimationclass🟡 PartialMissing: toJson, static fromJson, static none, static linear
GemErrorenum🟡 PartialMissing: static networkCouldntResolveHost, static networkCouldntResolveProxy, static networkCouldntResume, static fromCode, static isErrorCode
GemIconenum🟡 PartialMissing: static fromId
GemImageclass🔘 StubImports compile; calls throw a descriptive error
GemKitclass🟡 PartialMissing: createScreen, createCanvas, handleMessage, callHeapU8Subarray, callCreateImage, passBinaryDataToWasm … +1 more
GemMapclass🟡 PartialMissing: labelHoverProbingEnabled
GenericCategoriesclass🟡 Partialcategories is empty (no bundled catalogue). Missing: static getCategory, static getGenericCategory, static landmarkStoreId, static getPoiCategories
GenericCategoryclass➕ Lite extension
GeographicAreainterface🟡 PartialMissing: containsCoordinates, centerPoint, type, toJson, fromJson, convert … +2 more
HighlightOptionsenum🔘 StubImports compile; calls throw a descriptive error
HighlightRenderSettingsclass🔘 StubImports compile; calls throw a descriptive error
ImageFileFormatenum🟡 PartialMissing: static pvrtc, static fromId
Landmarkclass🟡 PartialMissing: pointerId, mapId, contactInfo, getContourGeographicArea, entrances, getExtraImage … +19 more
LandmarkAddresstype➕ Lite extension
LandmarkCategoryclass🔘 StubImports compile; calls throw a descriptive error
LandmarkListclass🟡 PartialMissing: static fromJsonList
LandmarkStoreclass🔘 StubImports compile; calls throw a descriptive error
LandmarkStoreServiceclass🔘 StubImports compile; calls throw a descriptive error
Languageclass🔘 StubImports compile; calls throw a descriptive error
LocationForecastclass🟡 PartialMissing: toJson, static fromJson
MapDetailsclass🔘 StubImports compile; calls throw a descriptive error
MapViewMarkerCollectionsclass🟡 PartialMissing: externalRenderers, pointerId, mapId, getCollectionAt, hitTest, indexOf … +8 more
Markerclass🟡 PartialMissing: pointerId, add, delete, deletePart, area, getPartArea … +10 more
MarkerCollectionclass🟡 PartialMissing: pointerId, mapId, getMarkerAt, getMarkerById, hitTest, save … +5 more
MarkerCollectionRenderSettingsclass🟡 PartialMissing: polylineTexture, polygonTexture, polylineInnerColor, polylineOuterColor, polygonFillColor, polylineInnerSize … +14 more
MarkerJsonclass🟡 PartialMissing: toJson
MarkerLabelingModeenum✅ Full
MarkerMatchclass🟡 PartialMissing: static init
MarkerRenderSettingsclass🟡 PartialMissing: polylineInnerColor, polylineOuterColor, polygonFillColor, polylineInnerSize, polylineOuterSize, imagePointer … +12 more
MarkerTypeenum✅ Full
MarkerWithRenderSettingsclass🟡 PartialMissing: toJson, toBinary
MinuteCastNowcastclass➕ Lite extension
NavigationEventTypeenum✅ Full
NavigationInstructionclass🟡 PartialMissing: pointerId, mapId, currentCountryCodeISO, currentStreetName, currentStreetSpeedLimit, driveSide … +41 more
NavigationInstructionUpdateEventsenum🟡 PartialMissing: static nextTurnUpdated, static nextTurnImageUpdated, static laneInfoUpdated
Parameterclass🔘 StubImports compile; calls throw a descriptive error
Pathclass🟡 PartialPath.load returns null, Path.toBytes returns an empty buffer. Missing: cloneReverse, cloneStartEnd, exportAs, area, coordinates, wayPoints … +2 more
PathFileFormatenum🟡 PartialMissing: static nmea, static latLonTxt, static lonLatTxt, static packedGeometry, static polyline, static fromId … +1 more
PathPointinterface➕ Lite extension
PathsCollectionclass➕ Lite extension
PedestrianProfileenum✅ Full
PinDatainterface➕ Lite extension
Pointtype✅ Full
Popupclass🟡 PartialMissing: closeOnClick, _position
PopupOptionsinterface✅ Full
PositionQualityenum🟡 PartialMissing: static invalid, static inertial
PositionServiceclass🟡 PartialsetExternalDataSource is accepted but external streams are not ingested. Missing: addPositionListener, addImprovedPositionListener, removeListener, getPosition, getImprovedPosition, improvedPosition … +3 more
PredefinedExtraInfoKeyclass✅ Full
ProjectionTypeenum🟡 PartialMissing: static w3w, static undefined, static fromId
PTAlertActivePeriodclass🟡 PartialMissing: static fromParameter, static buildActivePeriods
PTAlertCauseenum✅ Full
PTAlertEffectenum✅ Full
PTAlertInfoclass🟡 PartialMissing: urlFor, headerTextFor, descriptionTextFor, causeDetailFor, effectDetailFor, static selectTranslation … +3 more
PTAlertSeverityLevelenum✅ Full
PTAlertTranslationclass🟡 PartialMissing: static fromParameter, static buildTranslations
PTAlgorithmTypeenum🟡 PartialMissing: static departure, static arrival
PTCongestionLevelenum✅ Full
PTCrowdingInfoclass🟡 PartialMissing: static fromParameters
PTOccupancyStatusenum✅ Full
PTRouteclass🟡 PartialData class only — public-transit routing is not computed. Missing: publicTransportFare, publicTransportFrequency, publicTransportRespectsAllConditions, countBuyTicketInformation, getBuyTicketInformation
PTRouteInstructionclass🟡 PartialData class only — public-transit routing is not computed. Missing: name, platformCode, arrivalTime, departureTime, hasWheelchairSupport
PTRouteSegmentclass🟡 PartialData class only — public-transit routing is not computed. Missing: name, platformCode, arrivalTime, departureTime, hasWheelchairSupport, shortName … +19 more
PTStopScheduleFilterclass🟡 PartialMissing: isEmpty, toRequestArgs
RealtimeStatusenum🟡 PartialMissing: static delay, static notAvailable
RectangleGeographicAreaclass🟡 PartialMissing: fromJson, convert, reset, toJson, intersects, contains … +12 more
RectTypeclass🟡 PartialMissing: equals, toRectangle, hashCode, static fromJson, static fromRectangle
RequestWikiInfoParamsinterface🟡 PartialMissing: coordinates
Routeclass🟡 PartialMissing: equals, isEVRoute, isPTRoute, isOTRoute, toOTRoute, extraInfo … +2 more
RouteAlternativesSchemaenum✅ Full
RouteInstructionclass🟡 PartialMissing: toEVRouteInstruction, toPTRouteInstruction
RoutePreferencesclass🟡 PartialMissing: accurateTrackMatch, algorithmType, alternativeRoutesBalancedSorting, alternativesSchema, buildConnectionsMaxLength, avoidBikingHillFactor … +38 more
RoutePreferencesOptionsinterface➕ Lite extension
RouteRenderOptionsenum🟡 PartialMissing: static showUserImage, static fromId
RouteRenderSettingsclass🟡 PartialMissing: traveledInnerColor, turnArrowInnerColor, turnArrowOuterColor, turnArrowInnerSz, turnArrowOuterSz, fillColor … +8 more
RoutesCollectionclass➕ Lite extension
RouteSegmentclass🟡 PartialMissing: toEVRouteSegment, toPTRouteSegment, dispose
RouteTerrainProfileclass🟡 PartialMissing: pointerId, mapId, climbSections, maxElevationDistance, minElevationDistance, roadTypeSections … +4 more
RouteTransportModeenum✅ Full
RoutingServiceclass🟡 PartialMissing: static setRouteRoadBlock, static resetRouteRoadBlocks, static isCalculationRunning, static getRouteStatus, static transferStatistics, static getEVCarModels
SceneObjectFileFormatenum🟡 PartialMissing: static mat, static gltf
SdkSettingsclass🔘 StubImports compile; calls throw a descriptive error
SearchPreferencesclass🟡 PartialMissing: estimateMissingHouseNumbers, exactMatch, searchOnlyOnboard, thresholdDistance, easyAccessOnlyResults, landmarks … +2 more
SearchServiceclass🟡 PartialMissing: static searchLandmarkDetails, static searchAlongRoute
TaskHandlerclass✅ Full
TransitTypeenum✅ Full
TruckProfileclass🟡 PartialMissing: toJson, equals, hashCode, static fromJson
TurnDetailsclass🟡 PartialMissing: pointerId, mapId, abstractGeometry, getAbstractGeometryImage, abstractGeometryImg, abstractGeometryImageUid … +4 more
Warningclass🟡 PartialMissing: static fromJson
WeatherDurationCoordinatesinterface✅ Full
WeatherProgressListenerinterface➕ Lite extension
WeatherServiceclass🟡 PartialMissing: static maxCoordinatesPerRequest, static maxDayForDailyForecast, static maxHoursForHourlyForecast, static transferStatistics
WeatherUnitSystemtype✅ Full
WikiImageinterface✅ Full
WikiInfointerface✅ Full
WikipediaServiceclass✅ Full
WikipediaServiceOptionsinterface✅ Full
Not exported by Lite — a named import fails to build (350 symbols)

AbstractGeometry, AbstractGeometryImg, AbstractGeometryItem, Acceleration, ActivationInfo, ActivationService, ActivationStatus, ActivityConfidence, ActivityRecord, ActivityType, ActivityVisibility, AlarmListener, AlarmMonitoredArea, AlarmService, AlarmsList, AlertSeverity, AnchorType, AppTheme, ArrowDirection, ArrowType, Attitude, AudioCategory, AudioOutput, AudioStreamType, AutoUpdateSettings, Battery, BatteryHealth, BatteryState, BNGProjection, Camera, CameraConfiguration, CarProfile, ClimbSection, ColorExtension, ColorLike, Compass, CompassAccuracy, ContentDownloadThreadPriority, ContentStoreItemList, ContentStoreItemStatus, ContentUpdater, ContentUpdaterStatus, CountryData, CursorSelectionCallback, DataInterruptionReason, DataSavePolicy, DataSourceListener, DataSourceType, Debug, DepartureHeading, DriverBehaviour, DriverBehaviourAnalysis, DriveSide, DrivingEvent, DrivingScores, DurationID, EffortType, ElectricBikeProfile, ElectricBikeType, EngineMisc, EntranceLocations, EntranceLocationType, EVCarModel, EVCarModelList, EVChargingConnector, EventDrivenProgressListener, EventHandler, EVProfile, EVRouteInstruction, EVRouteSegment, ExpiredContent, ExternalInfoConfig, ExternalInfoHandler, ExternalPositionData, ExtraInfo, FaceType, FileSortOrder, FileSortType, FileType, FollowPositionMapRotationMode, FollowPositionPreferences, FollowPositionState, FollowPositionStateCallback, FuelType, Gate, GateDecision, GateKeeperService, GateStatus, GemCameraPlayer, GemCameraPlayerStatus, GemConsoleLogLevel, GemDumpSdkLevel, GemImprovedPosition, GemKitPlatform, GemList, GemParameter, GemPosition, GemPositionListener, GemPositionListenerParams, GemSdkNativeBase, GemView, GenericCategoriesId, GenericCategoriesIdExtension, GeographicAreaType, GetWaypointsOptions, GKProjection, Grade, GuidedAddressSearchPreferences, GuidedAddressSearchService, HardwareSpecification, HeartRate, Hemisphere, HoveredMapLabelHighlightedLandmarkCallback, HoveredMapLabelHighlightedOverlayItemCallback, HoveredMapLabelHighlightedTrafficEventCallback, IGemKitPlatform, IGemPositionListener, ImagePixelFormat, ImagePosition, IMapViewListener, Img, ImgBase, ImprovedPositionDefTransportMode, ISOCodeConversions, ISOCodeType, ISOCodeTypeExtension, LAMProjection, LandmarkAlarmsList, LandmarkBrowseSession, LandmarkBrowseSessionSettings, LandmarkFileFormat, LandmarkJson, LandmarkOrder, LandmarkPosition, LandmarkStoreCollection, LandmarkStoreListener, LandmarkStoreType, LandmarkStoreTypeExtension, LaneImageRenderSettings, LaneImg, LayoutImageId, LineType, LocalizationService, Logger, LoggerConfig, LogLevel, LogMark, LogMetadata, LogMetrics, LogUploader, LogUploaderState, LogUploadListener, looksLikeSvg, MagneticField, MapAngleUpdateCallback, MapCamera, MapCoverage, MapDetailsQualityLevel, MapDownloaderService, MapExtendedCapability, MapLanguage, MappedDrivingEvent, MapProviderId, MapSceneObject, MapStatus, MapViewExtensions, MapViewMoveStateChangedCallback, MapViewOverlayCollection, MapViewPathCollection, MapViewPerspective, MapViewPreferences, MapViewRenderedCallback, MapViewRenderInfo, MapViewRoute, MapViewRoutesCollection, MarkerInfo, MarkerMatchType, Metrics, MGRSProjection, MotorVehicleProfile, MountInformation, MoveCallback, NavigationModifiers, NavigationService, NavigationStatus, NextSpeedLimit, NextSpeedLimitStatus, NmeaChunk, OffBoardListener, OnlineRestrictions, Orientation, OrientationType, Origin, OverlayCategory, OverlayInfo, OverlayItem, OverlayItemAlarmsList, OverlayItemPosition, OverlayMutableCollection, Pair, ParameterList, PathMatch, PersistentRoadblockListener, PinchCallback, PinchSwipeCallback, Playback, PlayingStatus, PluggedType, Point3d, Point4d, PolygonGeographicArea, PositionAccuracy, PositionActivity, PositionOrientation, PositionSensorConfiguration, ProductID, ProgressListener, Projection, ProjectionService, Provider, PTAgency, PTAlert, PTBuyTicketInformation, PTRouteInfo, PTRouteType, PTSortingStrategy, PTStop, PTStopInfo, PTStopTime, PTTranslation, PTTrip, PublicTransportImageId, RangeType, Reason, Recorder, RecorderBookmarks, RecorderConfiguration, RecorderStatus, RecordingTransportMode, RecordMetrics, RenderableImg, RenderMapScaleCallback, RenderSettings, Resolution, RestrictionType, RoadInfo, RoadInfoImageRenderSettings, RoadInfoImg, RoadModifier, RoadShieldType, RoadType, RoadTypeSection, RotationRate, RoundTripParameters, RouteBookmarks, RouteBookmarksSortOrder, RouteDisplayMode, RouteInstructionBase, RouteListener, RoutePathAlgorithm, RoutePathAlgorithmFlavor, RoutePreviewBubbleImageId, RouteResultDetails, RouteResultType, RouteStatus, RouteTrafficEvent, RouteType, RouteTypePreferences, ScriptVariant, SdkCapability, SdkImageIds, SdkPredefinedImageId, SearchableParameterList, SenseData, SenseDataFactory, SensorConfiguration, ServiceGroupType, SetMapStyleCallback, ShapeForm, ShapeType, ShoveCallback, SignpostConnectionInfo, SignpostDetails, SignpostImageRenderSettings, SignpostImg, SignpostItem, SignpostItemList, SignpostItemType, SignpostPictogramType, Size, SizeAndFormat, SocialOverlay, SocialReportListener, SocialReportsOverlayInfo, SoundMark, SoundPlayingListener, SoundPlayingPreferences, SoundPlayingService, SoundPlayType, SoundSessionRequestPreferences, SportType, SteepSection, StepType, StringHolder, StyleLayerInfo, SurfaceSection, SurfaceType, SwipeCallback, Temperature, TemperatureLevel, TextMark, TilesCollectionGeographicArea, TimeDistance, TimeDistanceCoordinate, TimezoneResult, TimezoneService, TimeZoneStatus, TouchCallback, TouchGestures, TouchPinchCallback, TrafficAvoidance, TrafficEvent, TrafficEventClass, TrafficEventImpactZone, TrafficEventSeverity, TrafficOnlineRestrictions, TrafficParameters, TrafficPreferences, TrafficService, TrafficUsage, TransferStatistics, TtsLocalizationService, TurnEvent, UnitOfMeasurementAcceleration, UnitSystem, UserRoadblockPathPreviewCoordinate, UTMProjection, ValueType, VehicleRegistration, Version, ViewCameraTransitionStatus, ViewDataTransitionStatus, ViewportResizedCallback, Voice, VoiceType, W3WProjection, WeatherRestService, WeatherRestServiceOptions, WGS84Projection, XyType