Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Basic examples for bringing SensorThingsAPI Locations and HistoricalLocations to web maps as markers or trajectories.

License

NotificationsYou must be signed in to change notification settings

tum-gis/FROST-on-a-map

Repository files navigation

This repo contains some basic examples on how to queryLocations andHistoricalLocationsfrom anOGC SensorThingsAPI conform service,as for instanceFROST-Server instance and place themon a web map using Open Source mapping APIs likeLeaflet.js.

Location markers

Plot the lastLocations of allThings on a map and add a popup to the markers with basicinformations on theThing. To cluster markers at the same locationLeaflet MarkerCluster is used.

Adapt line 16 ofjs/locationMarkers/locationMarkers.js to change the FROST instance.

// Configure FROST instancevarfrostBaseURL='https://my.frost.server.de/FROST-Server/v1.1';

OpenlocationMarkers.html in a browser to view the results.

Locations markers with clustering for markers at same locations.

Trajectory with directional arrows fromHistoricalLocations

Query the last nHistroicalLocations from a givenThing in a time period (optional)and plot a trajectory withArrowHeadsfrom it.

Adapt lines 15-18 ofjs/trajectory/trajectory.js:

// FROST server, Thing, number of HistoricalLocations, time filter (optional)varfrostBaseURL='https://my.frost.server.de/FROST-Server/v1.1';varthingIotID=16;varnHistoricalLocations=10;vartimeIntervalFilter='$filter=time%20gt%202020-10-20T00:00:00.000Z%20and%20time%20lt%202020-10-22T23:59:59.999Z';

Opentrajectory.html in a browser to view the result.

Example trajectory from FROST HistroicalLocations

About

Basic examples for bringing SensorThingsAPI Locations and HistoricalLocations to web maps as markers or trajectories.

Topics

Resources

License

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp