venueToFrame

fun venueToFrame(administrativeId: String?): MPVenueStub?

The venue a map should open on, given the venue an app named through MPIMapConfig.Builder.setInitialVenue — or null when there is no answer the SDK can stand behind.

The rule the SDK applies itself, exposed so a camera built before the map exists frames the same venue the SDK would. Anything else is a first frame that jumps the moment the config is built.

  • one venue: that venue, named or not — there is nothing to choose;

  • several, and one is named: that venue, matched case-insensitively, provided it carries bounds or a zoom to frame with;

  • several, and none named: null. Any venue picked here would be a guess, and a guess is wrong on every launch where the user had chosen a different one. The iOS SDK applies the same rule.

Parameters

administrativeId

The venue's MPVenue.getAdministrativeId, or null when none was named.