Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore side by side maps #21

Open
4 tasks
ericnost opened this issue Feb 9, 2025 · 1 comment
Open
4 tasks

restore side by side maps #21

ericnost opened this issue Feb 9, 2025 · 1 comment
Assignees
Milestone

Comments

@ericnost
Copy link
Member

ericnost commented Feb 9, 2025

The comparemapper.html allows loading different data layers for the same location and visualizing them side by side.

It is currently broken in different places for a few reasons:

  • the "side by side" json in config.js that defines layers for mapping in comparemapper.js includes broken services. Just need to update where these links point to, to the same services currently in the main TOC.
  • the code in comparemapper.js makes a query of a lookup table that is no longer available. This lookup table just needs to be rebuilt based on the dataobj definitions in config.js
  • the "demographics" option relies on a custom table/layer of ACS data, with summary values at various Census units for different measures like population density. The custom table/layer is no longer available.
  • similarly, the "threshold" option relies on a custom table of "exceedances". Some of this information might be available in the main EJScreen tables?
@ericnost ericnost self-assigned this Feb 9, 2025
ericnost added a commit that referenced this issue Feb 9, 2025
hides demographic and threshold options in compare mapper tool
part of #21
ericnost added a commit that referenced this issue Feb 9, 2025
- updates lookup table service
- changes query to match
- changes default from `MapImageLayer` to `FeatureLayer` based on new feature services
- addresses #21
@ericnost
Copy link
Member Author

ericnost commented Feb 9, 2025

the "side by side" json in config.js that defines layers for mapping in comparemapper.js includes broken services. Just need to update where these links point to, to the same services currently in the main TOC.

This is mostly done. But I missed a few e.g.

criticalservices: {
		description: "Crtitical Service Gaps",
		mouseover:"Crtitical Service Gaps",
		type: "agsdynamic",
		visible: false,
		dynamic: true,
		layerurl: localRESTurl ,
		service: "ejscreen/critical_service",
		transparency: "1",
		removable: false,
		defaultlayer: [-1],
		listlayer: [0, 1, 2, 3, 4],
		position: 5,
		imageName: "chapel_16x16.png",
	},

should be updated to match the suggestservicesCRITSVCGAPS json. This may or may not work going from a map server to a series of feature servers...at the very least could just spell out each service individually rather than in listlayer

@ericnost ericnost added this to the restore milestone Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant