deckgl-typings icon indicating copy to clipboard operation
deckgl-typings copied to clipboard

Export InitialViewStateProps

Open strican opened this issue 3 years ago • 1 comments

Would be nice to make this type public so it's easier to define objects that match the type. Is there any philosophy on which types are published and which aren't or is it on an as needed basis?

I'm trying to define a type that's returned from an API that includes a GeoJSON object as well as an InitialViewState so I can refocus the map on whatever shape is provided in the GeoJSON object. For instance:

export interface Area {
  id: number;
  name: string;
  data: GeoJSON.Geometry;
  view: InitialViewStateProps;
}

As it stands now, I'd have to define a new type with those values.

strican avatar Mar 11 '21 02:03 strican

Hi @strican , these types were originally generated and mostly incomplete. The community has been manually patching things in as needed. If you have a fix we'd gladly take a PR :)

danmarshall avatar Mar 11 '21 20:03 danmarshall