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

Fix for missing clusters on printout #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

darinatch
Copy link

Fix for missing clusters on printout when Print Task is used.
The _opacity property is added to give the user the opportunity to make the clusters transparent. Without setting the opacity on the Cluster layer itself, the clusters are not transparent. I personally, changed the cluster symbol colors and made them not transparent to have the same result on the printout. But this is a personal preference and I did not include it here.
Also, if a ClassBreaksRenderer is set after the ClusterFeatureLayer is instantiated, the Print Task throws an error. So, in order for the Print Task to work, the provided ClassBreaksRenderer must be used.

Fix for missing clusters on printout when Print Task is used.
The _opacity property is added to give the user the opportunity to make the clusters transparent. Without setting the opacity on the Cluster layer itself, the clusters are not transparent. I personally, changed the cluster symbol colors and made them not transparent to have the same result on the printout. But this is a personal preference and I did not include it here. 
Also, if a ClassBreaksRenderer is set after the ClusterFeatureLayer is instantiated, the Print Task throws an error. So, in order for the Print Task to work, the provided ClassBreaksRenderer must be used.
@ERS-Long
Copy link
Owner

Thanks a lot, I will try it.

Sent from my iPhone

On Oct 12, 2015, at 10:07 AM, Darina Tchountcheva [email protected] wrote:

Fix for missing clusters on printout when Print Task is used.
The _opacity property is added to give the user the opportunity to make the clusters transparent. Without setting the opacity on the Cluster layer itself, the clusters are not transparent. I personally, changed the cluster symbol colors and made them not transparent to have the same result on the printout. But this is a personal preference and I did not include it here.
Also, if a ClassBreaksRenderer is set after the ClusterFeatureLayer is instantiated, the Print Task throws an error. So, in order for the Print Task to work, the provided ClassBreaksRenderer must be used.

You can view, comment on, or merge this pull request online at:

#2

Commit Summary

Fix for missing clusters on printout
File Changes

M PointClustering/ClusterFeatureLayer.js (10)
Patch Links:

https://github.com/ERS-Long/PointClustering/pull/2.patch
https://github.com/ERS-Long/PointClustering/pull/2.diff

Reply to this email directly or view it on GitHub.

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

Successfully merging this pull request may close these issues.

2 participants