Comments (2)
There may be an issue identified here when the defaultMapClickMode is set to an empty string. I suspect that isn't a common scenario - at least not one that I recall having been discussed here in the last 5+ years.
Regarding this statement,
InfoTemplates that are set on Feature Layers should always be available and not removed
If the Feature Layer infoTemplates were always available, they would interfere with widgets such as Drawing/Editing tools - The infoWindow popping up unexpectedly when attempting to draw or edit a feature is disruptive. Draw and Edit are just examples. There are many contributed tools that interact with the map in a similar fashion that would be affected by this change in behavior.
Over the years, there have been many "challenges" identified in the approach taken by Esri within the 3.x API with regards to interacting with graphics on top of the map.This includes features from a Feature layer. CMV has addressed this in a specific way that has worked for many years with few compromises in functionality. Esri revisited and improved this approach in the 4.x API and is investing close to zero time in the 3.x API. As we move forward with working with the 4.x API, I highly doubt the CMV team will be re-examining how we interact with the 3.x API.
from cmv-app.
Completely agree with the 'challenges' of working with graphics in 3.x and regarding the time invested in 3.x functionality vs moving forward with 4.x.
Regarding defaultMapClickMode -- it can often lead to poor UX (at least in my client's scenario) when panning around the map and accidental left-click events will register an identify popup with no results, or generally unwanted identify popups.
We decided to keep 'identify' as a right-click menu option, and leave left-click with default functionality -- setting defaultMapClickMode to empty string. Understand this may be an uncommon case.
setInfoWindowOnClick is what I use to toggle the default graphic popup behavior that might interfere in custom widgets (or Draw, Edit, Measurement, etc.).
I can see the issue with modifying all the community widgets to use the above method, but it may be possible to use that method in Identify, rather than removing the infoTemplate ? Not sure.
from cmv-app.
Related Issues (20)
- field value should contain hyperlink in a popup obtain from search widget in 2.8 versionWeb App builder developer edition
- Create Dialog Box Dynamically,Get user input values and Add Text Graphics on Map ? HOT 1
- vector tile service 4.x supported? HOT 2
- Toggle Labeling menu LayerControl widget Layers ? HOT 5
- Can only identify top layer in Grouped Layer configuration HOT 5
- add WMS-C layer
- Print Scale Error HOT 3
- can cmv be localized??? HOT 4
- example to use Arcade in a customized identify config file HOT 2
- Feature Server support?
- support arcgis javascript api v3.33? or v3.28 HOT 4
- Are you going to make v4.16 version of CMV? v3.x will retired in 2022 as ESRI claimed HOT 4
- Save Layer Visibility State in URL Query Params HOT 2
- How put an accordion in left pane HOT 2
- BUG? - LayerControl doesn´t show all simbology
- Doubt: how open sidebarBottom programatically? HOT 1
- Zoom Level in Attribute Grid HOT 1
- Missing iconClass in widget config causes crash while loading on mobile HOT 1
- Home Button bug HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmv-app.