Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Generate offline map (basemap by reference) bug #1083

Open
vquach2404 opened this issue Jun 21, 2021 · 2 comments
Open

Generate offline map (basemap by reference) bug #1083

vquach2404 opened this issue Jun 21, 2021 · 2 comments
Labels

Comments

@vquach2404
Copy link
Collaborator

While updating the TPK for this sample, I found that the sample does not behave as expected. This sample should prompt the user to select either a local or online basemap. However, the sample currently does not prompt the user.

@vquach2404 vquach2404 added the bug label Jun 21, 2021
@yo1995
Copy link
Collaborator

yo1995 commented Jun 22, 2021

Currently this filename is an empty string

image

The doc is a bit confusing, but I think there are 2 possibilities

  • The author of the online web map doesn't specify a default local basemap filename to use
  • In order to use the local tile package, we need to set instead of get this property, i.e. let url = Bundle.main.url(forResource: "{path_to}/naperville_imagery", withExtension: "tpkx"), then set the filename and directory accordingly, i.e.
parameters.referenceBasemapFilename = url.lastPathComponent
parameters.referenceBasemapDirectory = url.deletingLastPathComponent()

imagery-tile

The second idea gives me the result above, but I can not tell if it is expected. 😓

@yo1995
Copy link
Collaborator

yo1995 commented Aug 22, 2022

Do you think this bug is still worth fixing? If not, let's close all the remaining opened issues. 🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants