Skip to content

Add GeoJsonCatalogItem example #4

@jonathanpascoe

Description

@jonathanpascoe

Any chance you can provide a user drawn rectangle to GeoJsonCatalogItem example @na9da? I was hoping to do so but was presented with an error when attempting to init GeoJsonCatalogItem after importing from import GeoJsonCatalogItem from "terriajs/lib/Models/Catalog/CatalogItems/GeoJsonCatalogItem".

ERROR in ./packages/terriajs-plugin-markup/node_modules/terriajs/lib/Models/Catalog/CatalogItems/GeoJsonCatalogItem.ts 21:2
Module parse failed: Unexpected token (21:2)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| class GeoJsonCatalogItem
|   extends GeoJsonMixin(CreateModel(GeoJsonCatalogItemTraits))
>   implements HasLocalData {
|   static readonly type = "geojson";
|   get type() {
 @ ./packages/terriajs-plugin-markup/dist/index.js 1:68-162 1:890-891
 @ ./plugins.ts
 @ ./index.js
 @ ./entry.js

Thanks in advance for the support!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions