Coder Social home page Coder Social logo

Comments (8)

NikkiGolding avatar NikkiGolding commented on September 15, 2024

@MikeMillerGIS Is this a core Popup issue or is it tied to Information Lookup specifically? If it is the later, can we get this resolved soon? @previnWong

from information-lookup.

MikeMillerGIS avatar MikeMillerGIS commented on September 15, 2024

We center the map and show pop up, map does not move itself. maybe there is a setting or something?

Can they use the side panel?

from information-lookup.

MikeMillerGIS avatar MikeMillerGIS commented on September 15, 2024

maybe something we can leverage in this thread
https://community.esri.com/thread/32141

from information-lookup.

previnWong avatar previnWong commented on September 15, 2024

@karmstro77 @NikkiGolding Made a fix to center the popup to support mobile platform. By doing so, though, the point clicked is offset from center in the display. Give it a shot and let me know. Get the version in the dev branch.

https://github.com/Esri/information-lookup/tree/dev

from information-lookup.

MikeMillerGIS avatar MikeMillerGIS commented on September 15, 2024

@previnWong We should make this an option. Will this change will affect and provide a different UX from an app today?

from information-lookup.

previnWong avatar previnWong commented on September 15, 2024

It shouldn't. Today, the map center and zooms to where the user clicked. The infowindow then opens and is offset to the right, therefore getting cut off on mobile devices.
image

Now, I just get where the user clicked, offset that location by the resolution of the infowindow. Then show the popup. The result is that the popup is centered in the viewing area and the clicked point is offset. A graphic is there so a user knows where he/she clicked.
image

from information-lookup.

MikeMillerGIS avatar MikeMillerGIS commented on September 15, 2024

more worried about desktop browser based, will it only move the map if the pop up is cut off?

from information-lookup.

previnWong avatar previnWong commented on September 15, 2024

The existing code in there calls for the map to center and zoom. So the map in the desktop browser will move as of today. I'm just changing it slightly where it centers. It should do the same for desktop browser, push it away from top or right from getting cut off.

Speaking of it now, I haven't done the case where you click and select the underlying feature. I will have to handle that case as well.

from information-lookup.

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.