Loading src/components/container/App.jsx +1 −1 Original line number Diff line number Diff line Loading @@ -224,7 +224,7 @@ export default function App() { (async () => { aggregateMapList = await getStacAndAstroWebMapsData(); setMainComponent(<GeoStacApp mapList={aggregateMapList}/>); setMainComponent(<GeoStacApp mapList={aggregateMapList} astroWebMaps={mapsJson[astroWebMaps]}/>); })(); }, []) Loading src/components/container/GeoStacApp.jsx +1 −3 Original line number Diff line number Diff line Loading @@ -30,8 +30,6 @@ let css = { export default function GeoStacApp(props) { const [targetPlanet, setTargetPlanet] = React.useState(props.mapList.systems[4].bodies[0]); const [footprintData, setFootprintData] = React.useState([]); const [queryString, setQueryString] = React.useState("?"); const [collectionUrls, setCollectionUrls] = React.useState([]); Loading Loading @@ -65,7 +63,7 @@ export default function GeoStacApp(props) { bodyChange={handleTargetBodyChange} /> <div id="map-area"> <MapContainer target={targetPlanet.name} /> <MapContainer target={targetPlanet.name} astroWebMaps={props.astroWebMaps}/> </div> <QueryConsole queryString={queryString} Loading src/components/container/MapContainer.jsx +2 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ export default function MapContainer(props) { * handles all of the map intialization and creation. */ useEffect( () => { let map = new AstroMap("map-container", props.target, {}); let map = new AstroMap("map-container", props.target, props.astroWebMaps, {}); let controlManager = new AstroControlManager(map); controlManager.addTo(map); setOldTarget(props.target) Loading Loading @@ -48,7 +48,7 @@ export default function MapContainer(props) { document.getElementById("projectionSouthPole").classList.remove("disabled"); // create new map with updated target let map = new AstroMap("map-container", props.target, {}); let map = new AstroMap("map-container", props.target, props.astroWebMaps, {}); let controlManager = new AstroControlManager(map); controlManager.addTo(map); setOldTarget(props.target) Loading src/js/AstroMap.js +5 −4 Original line number Diff line number Diff line Loading @@ -4,8 +4,6 @@ import AstroProj from "./AstroProj"; import LayerCollection from "./LayerCollection"; import { setNumberMatched, setNumberReturned } from "./ApiJsonCollection"; import { MY_JSON_MAPS } from "./layers"; /** * @class AstroMap Loading @@ -26,6 +24,8 @@ import { MY_JSON_MAPS } from "./layers"; * * @param {String} target - Name of target to display layers for. * * @param {Object} myJsonMaps - Json fetched from AstroWebMaps * * @param {Object} options - Options for the map. */ export default L.Map.AstroMap = L.Map.extend({ Loading @@ -37,9 +37,10 @@ export default L.Map.AstroMap = L.Map.extend({ zoomControl: false }, initialize: function(mapDiv, target, options) { initialize: function(mapDiv, target, jsonMaps, options) { this._mapDiv = mapDiv; this._target = target; this._jsonMaps = jsonMaps; this._astroProj = new AstroProj(); this._radii = { a: "", Loading Loading @@ -203,7 +204,7 @@ export default L.Map.AstroMap = L.Map.extend({ wfs: [] }; let targets = MY_JSON_MAPS["targets"]; let targets = this._jsonMaps["targets"]; for (let i = 0; i < targets.length; i++) { let currentTarget = targets[i]; Loading src/js/layers.jsdeleted 100644 → 0 +0 −5783 File deleted.Preview size limit exceeded, changes collapsed. Show changes Loading
src/components/container/App.jsx +1 −1 Original line number Diff line number Diff line Loading @@ -224,7 +224,7 @@ export default function App() { (async () => { aggregateMapList = await getStacAndAstroWebMapsData(); setMainComponent(<GeoStacApp mapList={aggregateMapList}/>); setMainComponent(<GeoStacApp mapList={aggregateMapList} astroWebMaps={mapsJson[astroWebMaps]}/>); })(); }, []) Loading
src/components/container/GeoStacApp.jsx +1 −3 Original line number Diff line number Diff line Loading @@ -30,8 +30,6 @@ let css = { export default function GeoStacApp(props) { const [targetPlanet, setTargetPlanet] = React.useState(props.mapList.systems[4].bodies[0]); const [footprintData, setFootprintData] = React.useState([]); const [queryString, setQueryString] = React.useState("?"); const [collectionUrls, setCollectionUrls] = React.useState([]); Loading Loading @@ -65,7 +63,7 @@ export default function GeoStacApp(props) { bodyChange={handleTargetBodyChange} /> <div id="map-area"> <MapContainer target={targetPlanet.name} /> <MapContainer target={targetPlanet.name} astroWebMaps={props.astroWebMaps}/> </div> <QueryConsole queryString={queryString} Loading
src/components/container/MapContainer.jsx +2 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ export default function MapContainer(props) { * handles all of the map intialization and creation. */ useEffect( () => { let map = new AstroMap("map-container", props.target, {}); let map = new AstroMap("map-container", props.target, props.astroWebMaps, {}); let controlManager = new AstroControlManager(map); controlManager.addTo(map); setOldTarget(props.target) Loading Loading @@ -48,7 +48,7 @@ export default function MapContainer(props) { document.getElementById("projectionSouthPole").classList.remove("disabled"); // create new map with updated target let map = new AstroMap("map-container", props.target, {}); let map = new AstroMap("map-container", props.target, props.astroWebMaps, {}); let controlManager = new AstroControlManager(map); controlManager.addTo(map); setOldTarget(props.target) Loading
src/js/AstroMap.js +5 −4 Original line number Diff line number Diff line Loading @@ -4,8 +4,6 @@ import AstroProj from "./AstroProj"; import LayerCollection from "./LayerCollection"; import { setNumberMatched, setNumberReturned } from "./ApiJsonCollection"; import { MY_JSON_MAPS } from "./layers"; /** * @class AstroMap Loading @@ -26,6 +24,8 @@ import { MY_JSON_MAPS } from "./layers"; * * @param {String} target - Name of target to display layers for. * * @param {Object} myJsonMaps - Json fetched from AstroWebMaps * * @param {Object} options - Options for the map. */ export default L.Map.AstroMap = L.Map.extend({ Loading @@ -37,9 +37,10 @@ export default L.Map.AstroMap = L.Map.extend({ zoomControl: false }, initialize: function(mapDiv, target, options) { initialize: function(mapDiv, target, jsonMaps, options) { this._mapDiv = mapDiv; this._target = target; this._jsonMaps = jsonMaps; this._astroProj = new AstroProj(); this._radii = { a: "", Loading Loading @@ -203,7 +204,7 @@ export default L.Map.AstroMap = L.Map.extend({ wfs: [] }; let targets = MY_JSON_MAPS["targets"]; let targets = this._jsonMaps["targets"]; for (let i = 0; i < targets.length; i++) { let currentTarget = targets[i]; Loading
src/js/layers.jsdeleted 100644 → 0 +0 −5783 File deleted.Preview size limit exceeded, changes collapsed. Show changes