React Displaying Imagery from Open Street Maps
The React IgrOpenStreetMapImagery
is a free geographic imagery mapping service created collaboratively by OpenStreetMap© contributors from around the world. It provides geographic imagery tiles of the world only in road map style without any configuration options. This geographic imagery service can be accessed directly on www.OpenStreetMap.org web site.
By the default, the Ignite UI for React map component already displays geographic imagery from the Open Street Maps. Therefore, there is no need to configure the control to display geographic imagery from the Open Street Maps.
React Displaying Imagery from Open Street Maps Example
Code Snippet
This code example explicitly sets BackgroundContent
of the map component to the IgrOpenStreetMapImagery
object which provides geographic imagery from OpenStreetMap© contributors.
import { IgrGeographicMap } from 'igniteui-react-maps';
import { IgrOpenStreetMapImagery } from 'igniteui-react-maps';
// ...
const tileSource = new IgrOpenStreetMapImagery();
const geoMap = new IgrGeographicMap({ name: "geoMap" });
geoMap.backgroundContent = tileSource;
API References
BackgroundContent
IgrOpenStreetMapImagery