Skip to content

Commit

Permalink
Minor style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-chemla committed Jul 2, 2024
1 parent b7cbaf3 commit 27d2268
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
13 changes: 2 additions & 11 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function App() {

const [leftTimelineDate, setLeftTimelineDate] = useLocalStorage(
"leftTimelineDate",
subMonths(new Date(), 1)
subMonths(new Date(), 2)
);
const [rightTimelineDate, setRightTimelineDate] = useLocalStorage(
"rightTimelineDate",
Expand Down Expand Up @@ -173,17 +173,16 @@ function App() {
left: 0 ,
width: `100%`,
clipPath: `polygon(${splitPanelSizesPercent[0]}% 0%, ${splitPanelSizesPercent[0]}% 100%, 100% 100%, 100% 0% )`,
// Adding blending mode
mixBlendMode: (blendingActivation ? blendingMode : "normal"),
opacity: opacity,
} :
{
left: `${splitPanelSizesPercent[0]}%`,
width: `${splitPanelSizesPercent[1]}%`,
clipPath: '',
overflow: 'hidden',
mixBlendMode: 'normal',
opacity: 1,
overflow: 'hidden',
}
)
};
Expand Down Expand Up @@ -220,14 +219,6 @@ function App() {
10,
false
);
/*
c = document.querySelectorAll('canvas')
a = document.createElement('canvas')
document.body.appendChild(a)
cloneCanvas(c[0], a)
a.style = {position: 'absolute', top: 0, left: 0, width: '100%', height: '100%'}
*/

const leftMapboxMapStyle = useMemo(() => {
return leftSelectedTms == BasemapsIds.Mapbox
Expand Down
4 changes: 1 addition & 3 deletions src/custom-planet-api-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ function CustomPlanetApiModal(props: any) {
};

return (
<div className='customApiModal'>
<TextField value={`${props.customPlanetApiKey}` == 'undefined' ? `${props.customPlanetApiKey}` : props.customPlanetApiKey} onChange={handleInputChange} size={'small'} label="Planet Monthly Key" style={{ width: '86%' }} />
</div>
<TextField value={`${props.customPlanetApiKey}` == 'undefined' ? `${props.customPlanetApiKey}` : props.customPlanetApiKey} onChange={handleInputChange} size={'small'} label="Planet Monthly Key" style={{ width: '340px' }} />
);
};

Expand Down
4 changes: 2 additions & 2 deletions src/utilities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ const basemapsTmsSources: any = {
maxzoom: 21,
},
[BasemapsIds.ESRI]: {
// url: "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}.jpg",
url: "https://wayback.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/WMTS/1.0.0/default028mm/MapServer/tile/239/{z}/{y}/{x}",
url: "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}.jpg",
// url: "https://wayback.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/WMTS/1.0.0/default028mm/MapServer/tile/239/{z}/{y}/{x}",
maxzoom: 19,
},
// "http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}.jpg",
Expand Down

0 comments on commit 27d2268

Please sign in to comment.