NED File src/inet/visualizer/canvas/scene/OpenStreetMapSceneCanvasVisualizer.ned
Name | Type | Description |
---|---|---|
OpenStreetMapSceneCanvasVisualizer | simple module |
This module visualizes a stream map given in an OpenStreetMap file. Other objects of the scene are placed on the map according to the coordinate system module. |
Source code
// // Copyright (C) 2020 OpenSim Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later // package inet.visualizer.canvas.scene; import inet.visualizer.base.SceneVisualizerBase; import inet.visualizer.contract.ISceneVisualizer; // // This module visualizes a stream map given in an OpenStreetMap file. // Other objects of the scene are placed on the map according to the coordinate system module. // // @see ~SceneCanvasVisualizer, ~SceneVisualizer, ~SceneVisualizerBase, ~ISceneVisualizer // @see ~IGeographicCoordinateSystem, ~SimpleGeographicCoordinateSystem, ~OsgGeographicCoordinateSystem // simple OpenStreetMapSceneCanvasVisualizer extends SceneVisualizerBase like ISceneVisualizer { parameters: @class(OpenStreetMapSceneCanvasVisualizer); string coordinateSystemModule = default("coordinateSystem"); // the geographic coordinate system, refers to a top level module by default xml mapFile; // OpenStreetMap map file, e.g. one exported from openstreetmap.org double zIndex = default(0); // determines the drawing order of figures relative to other visualizers bool adjustBackgroundBox = default(true); // if true, sets background box (bgb tag) to match map bounds }