Skip to content

Different thematic map types are appropriate for different screen widths. This is a demo of changing thematic map types responsively using JavaScript.

Notifications You must be signed in to change notification settings

ztephm/responsive-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Responsive Map

This is a demonstration of how thematic map types can be changed responsively.

Why should a map theme change when screen size changes?

Interface design guidelines like this and this recommend minimum touchscreen target sizes. An interactive map marker's minimum clickable area can extend across other markers.

This is a prototype of one solution: aggregate map points into interactive clusters on small screens.

  • This prototype is made with CARTO.js v3/3.15, which incorporates these other libraries.
  • Clusters are created via a PostgreSQL query based on a modified CARTO algorithm, and styled with CartoCSS.
  • Window functions are used to make clusters for small screens only.
  • Different functionality can become enabled in smaller-width screens. Click on the four-arrow button to enable zoom, home (return original center and zoom), and legend toggle buttons.

Presented at NACIS Annual Meeting 2017


Slide 1: Tips for Making Web Maps Responsive Title Card

Slide 2: Data Optimization Tips Title Card

Slide 3: Optimization Tips

Slide 4

Slide 5: Scroll Problem

Slide 6: Pan/Zoom Problem

Slide 7: Overlay Problem

Slide 8: Interactivity Problem

Slide 9: Cartography Tips Title Card

Slide 10: Projection, Marker and Font Tips

Slide 11: Responsive Thematic Map Coding Tips Title Card

Slide 12: Responsive Cartography Example

Slide 13: Window Function

Slide 14: Queries for Clusters or Points

Slide 15: Resource Links

About

Different thematic map types are appropriate for different screen widths. This is a demo of changing thematic map types responsively using JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages