Page MenuHomePhabricator

Auto zoom/position doesn't work with masks
Closed, ResolvedPublic

Description

In this demo, map only has one geojson object - a mask, which is not being detected for setting coordinates correctly. I suspect the same will fail if the polygon was not inverted, but instead just had a valid small region somewhere.

<mapframe width="650" height="400" mode="interactive" show="poi">{
  "type": "FeatureCollection",
  "features": [
{
  "type": "Feature",
  "properties": {},
  "geometry": {
    "type": "Polygon",
    "coordinates": [
[[3600,-180],[3600,180],[-3600,180],[-3600,-180],[3600,-180]],
[[-122.4267,37.8081],[-122.4265,37.8082],[-122.4264,37.8077],[-122.4260,37.8072],[-122.4251,37.8068]
...