caltrans CA California department of transportation
project map
https://odp.dot.ca.gov/sb1/
info window not popup after user click feature
part 2
In part 1 I verify that feature layer works fine. In this part 2, I will continue to look into dynamic layers, map image layers.
Keep in mind this app is using map image layers and dynamic layers, that could be the reason link to the issue.
Single mag image layer test with tool 3000
https://transparentgov.net/json2tree/arcgis/js4/mapimagelayer_tree.html?layer_id=-99999&layer=RCA_Projects_062024&url=https%3A%2F%2Fodpsvcs.dot.ca.gov%2Farcgis%2Frest%2Fservices%2FRCA%2FRCA_Projects_062024%2FMapServer&_center_zoom=8&_center_lat=38.519426862928164&_center_long=-122.18206599398512&selectedItemIdArray=-99999&select_item_id=12&select_item_text=12+%26%23x21E2%3B+Active+Transportation+Program+pt%3Csup+style%3D%22font-size%3A8px%22%3Emultipoint%3C%2Fsup%3E&select_item_type=layer
Map image layer test, sometime, not popup. I am kind of know where the problem is.
It is the identify tool. ESRI's default identify api was used both on my testing tool here and caltrans, both share the same issue, not popup.
The root reason is could be by default ESRI set the size of identify tool, is too small, asuming it is 100 feet squre, if you click 200 feet from the point, then popup failed.
The fix is configure the esri's default setting about identify tool size, make it bigger, let's say 500 feet. Now as long as you click within 500 feet sqare box around the real location of a point, it will trigger popup window.
https://transparentgov.net/json2tree/esri/server2/folder.html?org=https%3A%2F%2Fodpsvcs.dot.ca.gov%2Farcgis%2Frest%2Fservices&url=https%3A%2F%2Fodpsvcs.dot.ca.gov%2Farcgis%2Frest%2Fservices&arcgis_online_token=&select_folder=12&select_layer=-1
Keep in mind that this issue only happen with point and line layer, does not apply to polygon layers. Polygon layer is free of this issue because when you click inside polygon, this polygon always get pick up. However, you never can click inside of point or line, you can only click close to a point or line. when. you click too far away from a point or line, the issue occured.
caltrans layer most of them are point and line, not like city's layer most of them are polygon such as police beat, fire district, zoning, general land use, parcel. Caltrans layer are freeway, highway, they are lines.