Uma janela de visualização de latitude-longitude, representada como dois pontos low e high diagonalmente opostos. Uma viewport é considerada uma região fechada, ou seja, ela inclui o limite. Os limites de latitude precisam variar entre -90 e 90 graus, e os limites de longitude precisam variar entre -180 e 180 graus. Vários casos incluem:
Se low = high, a viewport consiste nesse único ponto.
Se low.longitude for maior que high.longitude, o intervalo de longitude será invertido (a janela de visualização cruza a linha de longitude de 180 graus).
Se low.longitude = -180 graus e high.longitude = 180 graus, a viewport inclui todas as longitudes.
Se low.longitude = 180 graus e high.longitude = -180 graus, o intervalo de longitude vai estar vazio.
Se low.latitude for maior que high.latitude, o intervalo de latitude estará vazio.
low e high precisam ser preenchidos, e a caixa representada não pode estar vazia (conforme especificado nas definições acima). Uma viewport vazia vai resultar em um erro.
Por exemplo, esta viewport inclui toda a cidade de Nova York:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-04-29 UTC."],[[["A Viewport is defined by two points, `low` and `high`, representing the Southwest and Northeast corners respectively, forming a rectangular area on a map."],["Latitude ranges from -90 to +90 degrees, while longitude ranges from -180 to +180 degrees, inclusive."],["Specific conditions, like inverted longitude or empty latitude ranges, are defined for special viewport scenarios."],["Both `low` and `high` points are mandatory, and the resulting viewport must represent a valid, non-empty area to avoid errors."]]],["A viewport, defined by `low` and `high` latitude-longitude points, represents a closed geographical region. Both `low` and `high` points are mandatory. The longitude range inverts if `low.longitude` exceeds `high.longitude`. Specific cases include single-point viewports if `low` equals `high`, full longitude coverage if the longitude ranges from -180 to 180, and empty ranges if the `low` point exceedes `high` respectively in longitude or latitude. An empty viewport is considered an error.\n"]]