Skip to content

add custom extent prop for geomap widget #2313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-06-19 12:11:25.321241",
"spec_repo_commit": "a171e0a8"
"regenerated": "2025-06-20 14:27:10.684774",
"spec_repo_commit": "e790a980"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-06-19 12:11:25.337389",
"spec_repo_commit": "a171e0a8"
"regenerated": "2025-06-20 14:27:10.701180",
"spec_repo_commit": "e790a980"
}
}
}
16 changes: 16 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3439,6 +3439,22 @@ components:
example:
focus: WORLD
properties:
custom_extent:
description: A custom extent of the map defined by an array of four numbers
in the order `[minLongitude, minLatitude, maxLongitude, maxLatitude]`.
example:
- -30
- -40
- 40
- 30
items:
description: The longitudinal or latitudinal coordinates of the bounding
box.
format: double
type: number
maxItems: 4
minItems: 4
type: array
focus:
description: The 2-letter ISO code of a country to focus the map on. Or
`WORLD`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
* The view of the world that the map should render.
*/
export class GeomapWidgetDefinitionView {
/**
* A custom extent of the map defined by an array of four numbers in the order `[minLongitude, minLatitude, maxLongitude, maxLatitude]`.
*/
"customExtent"?: [number, number, number, number];
/**
* The 2-letter ISO code of a country to focus the map on. Or `WORLD`.
*/
Expand All @@ -31,6 +35,11 @@ export class GeomapWidgetDefinitionView {
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
customExtent: {
baseName: "custom_extent",
type: "[number, number, number, number]",
format: "double",
},
focus: {
baseName: "focus",
type: "string",
Expand Down