4.17 Empty Popup clicking anywhere on the map
See original GitHub issueExpected 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;
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
Closing - no activity. Feel free to comment if you have additional information.