Tell us what works and what could be better. We read every submission.
@YousefED·3 public vizzes
This example demonstrates a performance stress test for rendering a large collection of paths in a Cesium geospatial scene. The visualization displays 1,000 red glowing polylines, each spanning a fixed geographic area. The code uses the Cesium `PolylineCollection` primitive to aggregate all lines into a single rendering object, with each line created via `Cesium.Cartesian3.fromDegreesArray` for coordinate conversion. The visual style applies `Cesium.Material.PolylineGlowType`, a glow material with a specified `glowPower` and `Cesium.Color.RED`, and a fixed line width of 10 pixels. The scene is hosted in a `Cesium.Viewer` container, with all polylines added programmatically in a loop.
This example shows current weather conditions for multiple Dutch cities, displaying temperature (in Fahrenheit and Celsius), weather icons, and local time. Users select a city from a dropdown menu or search for a location, triggering an API call to the Weather Underground API via jQuery’s `$.getJSON`. The interface also supports automatic geolocation by default, updating the weather display dynamically. Results are rendered as text and images in HTML elements, with error handling for invalid search queries.
This example implements a client for the Strava API, providing methods to retrieve, create, update, and delete activity data. The code defines endpoints for fetching an activity’s laps, zones, comments, kudos, and photos, using utility functions to construct query strings and pagination parameters. It relies on HTTP methods like GET, POST, PUT, and DELETE to interact with the service, handling data for cycling or running activities.