Skip to content

Commit

Permalink
refactor(web): add layers id
Browse files Browse the repository at this point in the history
  • Loading branch information
ShogoHirasawa committed Jan 9, 2025
1 parent 8291c08 commit de75001
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ const widgetFile: FileType = {
// Difine the Polygon with inline
const layerGeojsonInline = {
type: "simple", // Must be written on first
id:"feature001", // A unique identifier for the layer
type: "simple", // Must be written
data: {
type: "geojson", // Write the data format
value: { // Ensure that "value" contains GeoJSON.
Expand Down Expand Up @@ -58,6 +59,7 @@ const layerGeojsonInline = {
// Difine the Polygon with URL
const layerGeojsonFromUrl = {
id:"feature002",
type: "simple",
data: {
type: "geojson",
Expand Down

0 comments on commit de75001

Please sign in to comment.