question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

4.17 Empty Popup clicking anywhere on the map

See original GitHub issue

Expected behavior

Encountered a bug in one of our projects when upgrading to ArcGis JS API v4.17. Anywhere we click on the map, we are getting an empty popup.

Actual behavior

When no features exist, I wouldn’t expect a popup to show at all.

Steps to reproduce the behavior

I spun up a barebones project that only contained the base map initialization logic. We are running the latest version of Angular (v11) esri-loader v2.16.0

The map initialization logic looks like this:

async initializeMap() {

    const [EsriMap, EsriSceneView] = await loadModules(['esri/Map', 'esri/views/SceneView']);

    this.map = new EsriMap({
      basemap: 'hybrid',
      ground: 'world-elevation'
    });

    const viewProperties: esri.SceneViewProperties = {
      container: this.mapEl.nativeElement,
      map: this.map
    };

    this.sceneView = new EsriSceneView(viewProperties);
    return this.sceneView;

}

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jwasilgeocommented, Nov 16, 2020

Thank you for setting that up for us. I can verify the issue you originally described. It also doesn’t seem to appear in the previous version JSAPI 4.16.

cc @andygup have you seen anything familiar or similar to this before?

0reactions
andygupcommented, Jan 5, 2021

Closing - no activity. Feel free to comment if you have additional information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Closing a popup when clicking outside of it · Issue #746 - GitHub
I'd like for a popup to be closed if a user clicks anywhere outside of the popup. I've tried adding an onClick handler...
Read more >
PySimpleGUI
If the user clicked the X button to close the window, then the button value returned is None or WIN_CLOSED is more explicit...
Read more >
MapImageLayer | API Reference | ArcGIS Maps SDK for ...
MapImageLayer allows you to display and analyze data from sublayers defined in a map service, exporting images instead of features. Map service images...
Read more >
Click outside the mark (or point) to close something on Mapbox
Use the click event handler for the entire map and the preventDefault function: map.on('click', 'point', function(e) { e.
Read more >
48 answers on StackOverflow to the most popular Angular ...
BehaviorSubject vs Observable? @Directive v/s @Component in Angular; Angular HTTP GET with TypeScript error http.get(…).map is not a function in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found