Interactive Examples
Explore practical examples of svelte-openlayers components with live code demos and detailed explanations.
Basic Map
BeginnerFoundation
Simple OpenLayers map with tile layer and reactive bindings
Key Concepts:
Map.Root
Map.View
Layer.Tile
Reactive bindings
Features
CoreStyling
Points, lines, and polygons with custom styling and click interactions
Key Concepts:
Feature.Point
Feature.LineString
Feature.Polygon
Custom styles
Event handling
Layer Management
AdvancedData
Multiple tile sources and vector layer visibility controls
Key Concepts:
Multiple tile sources
Layer visibility
Base layer switching
Data organization
Interactive Tooltips
InteractionUI
Context-sensitive tooltips with hover and click modes
Key Concepts:
Overlay.Tooltip
Pointer events
Dynamic content
State management
Dynamic Theming
AdvancedStylingUI
Interactive theme customization with CSS variables and dark mode
Key Concepts:
Dynamic Themes
Dark Mode
CSS Variables
Scoped Styles
Runtime Theming