Mapbox-gl-js: Overlapping popups

Created on 3 May 2017  ·  1Comment  ·  Source: mapbox/mapbox-gl-js

mapbox-gl-js version: 0.36.0

Steps to Trigger Behavior

  1. Add popups to GeoJSON points that are quite close to each other
  2. Open all popups
  3. Behold overlapping popups.

Expected Behavior

Would be nice if popups would be aware of each other, and adjust offset accordingly. Is this something that exists now? (Can't find it.)

Actual Behavior

screen shot 2017-05-03 at 22 13 54

>All comments

Hi @knutole, thanks for using Mapbox GL. This is something that you'll need to solve yourself. In general, collision avoidance is a hard problem, and one we don't plan to implement for popups.

Was this page helpful?
0 / 5 - 0 ratings