Code Monkey home page Code Monkey logo

Comments (12)

andygup avatar andygup commented on June 18, 2024

@dimpyvirk Can you duplicate the behavior using this sample app in tablet or mobile mode? https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=intro-mapview.

If the sample app works then the ArcGIS API for JavaScript is most likely not the issue. Usually these issues are related to CSS problems such as a DIV obscuring the map.

Be sure to update the CSS to the corresponding ArcGIS JS API version. Also note, 4.15 is the latest API version: https://www.npmjs.com/package/@arcgis/webpack-plugin

from angular-cli-esri-map.

dimpyvirk avatar dimpyvirk commented on June 18, 2024

@andygup the javascript code works fine https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=intro-mapview.
The issue comes when running with angular. It works fine on Mozilla (in tablet) but not on chrome.

from angular-cli-esri-map.

andygup avatar andygup commented on June 18, 2024

Interesting, it could be a zone.js issue. It works on my machine with "zone.js": "~0.10.2"

  • Did you try with ArcGIS JS API 4.15?
  • Which version of zone.js? Angular? Chrome?

from angular-cli-esri-map.

andygup avatar andygup commented on June 18, 2024

Closing, no activity.

from angular-cli-esri-map.

joaopaschoal avatar joaopaschoal commented on June 18, 2024

I noticed this problem emerged when upgrading from API 4.13 to 4.14. Seems to be related to this "Embedded map navigation enhancements" introduced in 4.14 as stated here since when pan fails the window is actually scrolled.
I tryied forcing my "zone.js" to "0.10.2" but the issue persists. I'm trying to tweak a workaround on this, otherwise am stuck with 4.13. Any help on this would be much appreciated.

from angular-cli-esri-map.

dimpyvirk avatar dimpyvirk commented on June 18, 2024

I noticed this problem emerged when upgrading from API 4.13 to 4.14. Seems to be related to this "Embedded map navigation enhancements" introduced in 4.14 as stated here since when pan fails the window is actually scrolled.
I tryied forcing my "zone.js" to "0.10.2" but the issue persists. I'm trying to tweak a workaround on this, otherwise am stuck with 4.13. Any help on this would be much appreciated.

@joaopaschoal can you try 4.16?

from angular-cli-esri-map.

joaopaschoal avatar joaopaschoal commented on June 18, 2024

@dimpyvirk , I've already tryied the latest 4.17 and the problem is still. Anyhow I've just tryied esri-loader 2.15.0 which ships with api 4.16 with no success. Have you ever managed to workaround this?

from angular-cli-esri-map.

dimpyvirk avatar dimpyvirk commented on June 18, 2024

@joaopaschoal what is your dojo version?

from angular-cli-esri-map.

andygup avatar andygup commented on June 18, 2024

@joaopaschoal we'll also need the following info, thanks:

  • Device make/model
  • OS version
  • Browser and version

from angular-cli-esri-map.

joaopaschoal avatar joaopaschoal commented on June 18, 2024

@dimpyvirk I belive Esri API uses dojo v5.0.4 since API v4.12, as noted here.
@andygup my current environment is:

  • Windows 10 x64
  • Angular CLI: 7.3.10
  • Node: 10.20.1
  • Device: You can reproduce it directly from Chrome Dev Tools (toggle device mode) but it also happened in all Android devices we have tested so far :( take mine for instance: Xiaomi Redmi 4 Pro - Android 6.0.1 - MIUI Global 10.2.2.0.
  • Browser: Google Chrome 86.0.4240.75 64 bit

Thank you guys so much for any help, if there is anything I can do to assist or additional info I'll be glad to provide it.

from angular-cli-esri-map.

andygup avatar andygup commented on June 18, 2024

@joaopaschoal thanks for the info. My first suggestion is to build this webpack branch of the repo and see if you have the same issues. Clone and npm install shouldn't take long.

It's possible Angular 7 is the culprit, it's a little over 2 years old now. This repo is using Angular 10. I tested it okay on an Android Pixel 2 - Android 11 - Chrome 86.

from angular-cli-esri-map.

joaopaschoal avatar joaopaschoal commented on June 18, 2024

I've managed to isolate the problem, it was just a silly mistake of mine: I've found the imported css was still pointing to v4.13 (doh!)
@dimpyvirk , in case you are still stuck with this issue, make sure to also upgrade the css url. Mine seems stable now.
Thanks one more time for valuable help :) and sorry for this silly mistake.

from angular-cli-esri-map.

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.