Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Continuous area cartograms?

Enthusiast ,
Jun 16, 2014 Jun 16, 2014

Anyone have any experience with these in AS3?

I am needing to produce something like this:

http://politicalmaps.org/wp-content/uploads/2007/11/2-2004-population-cartogram.png

TOPICS
ActionScript
272
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 17, 2014 Jun 17, 2014

i don't know any simple way to do that dynamically.  i would use the displacementmapfilter to do that, but learning how to use the displacementmapfilter is difficult.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 18, 2014 Jun 18, 2014

I've found a JS implementation, was just hoping someone had done that actual algorithm in AS3. I don't think displacement filter would do it, though I could be wrong. I'd just worry about the mapping getting to blurry - the proper algorithm actually changes vertex placements and so the map stays clear... Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 18, 2014 Jun 18, 2014

the displacementmapfilter would work perfectly for that.  for an example of how it works (dynamically) check http://www.kglad.com > snippets > displacement.

but it might be easier to convert from the js code (or just use it to load a html page in a swf).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 18, 2014 Jun 18, 2014
LATEST

Displacement map - _might_ be ok for fudging it only. Certainly it would not be perfect. True cartograms are vector - for instance if your data had Rhode Island as some max value - disp map would look like crap, and adjacent states would be too big... while a proper cartograms would scale the points to make the lines still crisp. RI could be big while Delaware still small - not possible with disp map. I'm really looking to do this right. Going to dig into the JS tonight I think.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines