GithubHelp home page GithubHelp logo

'Add custom dynamic entity data source' example under Layers not working for WPF application about arcgis-maps-sdk-dotnet-samples HOT 5 CLOSED

tejabalu avatar tejabalu commented on July 18, 2024
'Add custom dynamic entity data source' example under Layers not working for WPF application

from arcgis-maps-sdk-dotnet-samples.

Comments (5)

tejabalu avatar tejabalu commented on July 18, 2024 1

Hi!

Thanks for your response! I've found a fix for this and raised a PR here!

  1. Yes. I'm also seeing the same behavior in the WinUI project. The same sample does not exist for other frameworks like Maui.
  2. I'm seeing the same behavior in the app downloaded from the Microsoft Store and in the cloned repository.
  3. Debug | Any CPU
  4. I've actually tested this on 2 machines with the same behavior. The machines have Windows 11 and Windows 11 Arm respectively.

The issue was that the offline file name in the code did not match the actual file name being downloaded from the resource in the link. The name of the file in the resource link is AIS_MarineCadastre_SelectedVessels_CustomDataSource.jsonl, whereas the code has the file name as AIS_MarineCadastre_SelectedVessels_CustomDataSource.json, with the wrong file extension.

It's interesting that you are not seeing this behavior on your machine. My hypothesis would be that the link initially hosted the file name with the json extension, which was later changed to the jsonl. You might have had the file downloaded before this change was made, and the app was not redownloading the file. Could you please check what file you currently have on your PC, and if deleting it and prompting the app to redownload the file reproduces this behavior? The file is located at C:\Users\{UserName}\AppData\Local\ArcGISSampleData\a8a942c228af4fac96baa78ad60f511f if it makes it easier.

I'm happy to make any modifications to the PR if required!

P.S.: Sorry about my delayed response, I had limited access to my machine.

from arcgis-maps-sdk-dotnet-samples.

williambohrmann3 avatar williambohrmann3 commented on July 18, 2024 1

@tejabalu thank you for the detailed response and triage! I am now able to reproduce on all platforms. Just so you know, we do offer this sample in .NET MAUI. Looking at the PR now.

from arcgis-maps-sdk-dotnet-samples.

williambohrmann3 avatar williambohrmann3 commented on July 18, 2024

Hey @tejabalu thanks for checking offline files were downloaded. I'm unable to reproduce this on my Windows 10 PC when testing WPF .NET 6 and .NET Framework solutions. Note that there is limited data with the simulated data source - the data will only display for only a few minutes since we don't loop the data again. But it sounds like no data at all is displaying for you. Would you kindly answer the following?

  1. Are you seeing this behavior in both WPF projects?
  2. Did you deploy the sample viewer app from the Microsoft Store or did you clone the repo?
  3. If cloned, what configuration? e.g., Debug | x64
  4. What version of Windows are you on?

from arcgis-maps-sdk-dotnet-samples.

tejabalu avatar tejabalu commented on July 18, 2024

Nice, I updated the PR with the change for Maui too!

from arcgis-maps-sdk-dotnet-samples.

williambohrmann3 avatar williambohrmann3 commented on July 18, 2024

Fixed by @tejabalu

from arcgis-maps-sdk-dotnet-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.