caltrans CA California department of transportation
project map
https://odp.dot.ca.gov/sb1/
info window not popup after user click feature
This is the biggest problem so far. If you click the polyline, or point, nothing popup, then user will not be able to know what this project is about. Project name, money, time all info is in popup window.
Now popup window failed.
Here is all layers it use
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=19
Test same layer on google map
It works well, indicate the REST service api works well,
https://transparentgov.net:3200/googlemaps/default?layer_id=26&layer=State+Projects+%E2%80%93+Highway+Maintenance+ln¢er_lat=38.158608093682105¢er_long=-118.5831484219975¢er_zoom=7&url=https%3A%2F%2Fodpsvcs.dot.ca.gov%2Farcgis%2Frest%2Fservices%2FRCA%2FRCA_Projects_062024%2FMapServer&overlayType=overlayType_image&panto=0
Initial thought so far is I guess the problem is in this app itself. I have to look into source code to verify which case it is.
Possible 1:
It could because of GIS programmer neglect the mouse click event, did not hook mouse click event with popup window.
Possible 2:
It could be ESRI's design issue, the way ESRI's out of shelf product is like that, you have to configure it properly to make it works for you.
Test same layer on ESRI map with my own tool ESRI javascript API v4.30 ( latest )
Keep in mind this apps use v3.25
which released before 2018. So this apps is at least 8+ years old from now. 3rd generation v3.x is retired July 2024, no longer supported by ESRI.
Pop up works wells indicate the issue is not in Arcgis server, not in REST api. The issue is in web app itself.
https://transparentgov.net/json2tree/arcgis/js4/featurelayer_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=6&_center_lat=38.536616151121805&_center_long=-121.4885540310947&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
You can test youself by use 2000 - 3100, just click any line or point, it works well.
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
Test same layer with multiple feature layer tool 2100
popup still works fine, indicate that the problem is app itself, not REST web service or arcgis server.
https://transparentgov.net/json2tree/arcgis/js4/featurelayer_tree_multi.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=6&_center_lat=37.86805886669101&_center_long=-119.5422569261182&selectedItemIdArray=10%2C11%2C12%2C14