import * as React from 'react'; import ReactMapGL, {Source, Layer} from 'react-map-gl'; const geojson = { type: 'FeatureCollection', features: [ {type: ... ... <看更多>
Search
Search
import * as React from 'react'; import ReactMapGL, {Source, Layer} from 'react-map-gl'; const geojson = { type: 'FeatureCollection', features: [ {type: ... ... <看更多>
Maybe this is what you are looking for. <Layer {...{ id: "zone", type: "fill", source: { type: "geojson", data: { type: "Feature", ... ... <看更多>
You can inject data and mapbox native layers using the Source and Layer components: import * as React from 'react'; import ReactMapGL, {Source, ... ... <看更多>
addSource node_modules/mapbox-gl/dist/mapbox-gl.js (35:396741) createSource node_modules/react-map-gl/dist/esm/components/source.js (27:0) Source ... ... <看更多>
Recent releases and changes to uber/react-map-gl. ... Use JSX sources/layers in examples (PR 2/2) (#897); Add React Source and Layer components (PR 1/2) ... ... <看更多>
Adding a map with Mapbox GL JS and React. Displaying routes using Neo4j Graph Data Science ... ... <看更多>