[maps][xs] - fixing height
This commit is contained in:
5
examples/learn/next.config.js
Normal file
5
examples/learn/next.config.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
const nextConfig = {
|
||||||
|
swcMinify: false
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = nextConfig
|
||||||
@@ -37,7 +37,6 @@
|
|||||||
"react-hook-form": "^7.43.9",
|
"react-hook-form": "^7.43.9",
|
||||||
"react-query": "^3.39.3",
|
"react-query": "^3.39.3",
|
||||||
"react-vega": "^7.6.0",
|
"react-vega": "^7.6.0",
|
||||||
"rollup-plugin-re": "^1.0.7",
|
|
||||||
"vega": "5.25.0",
|
"vega": "5.25.0",
|
||||||
"vega-lite": "5.1.0",
|
"vega-lite": "5.1.0",
|
||||||
"vitest": "^0.31.4"
|
"vitest": "^0.31.4"
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const Map = ({ children, zoom, center, setSelected }) => {
|
|||||||
}, [map]);
|
}, [map]);
|
||||||
return (
|
return (
|
||||||
<MapContext.Provider value={{ map }}>
|
<MapContext.Provider value={{ map }}>
|
||||||
<div ref={mapRef} className="w-full h-[500px]">
|
<div ref={mapRef} className="w-full" style={{height: '500px'}}>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
</MapContext.Provider>
|
</MapContext.Provider>
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ const app = async (): Promise<UserConfigExport> => {
|
|||||||
'react-vega',
|
'react-vega',
|
||||||
'ol',
|
'ol',
|
||||||
'ol/dom.js',
|
'ol/dom.js',
|
||||||
|
'ol/reproj.js',
|
||||||
],
|
],
|
||||||
output: {
|
output: {
|
||||||
manualChunks: undefined,
|
manualChunks: undefined,
|
||||||
@@ -46,6 +47,7 @@ const app = async (): Promise<UserConfigExport> => {
|
|||||||
ol: 'ol',
|
ol: 'ol',
|
||||||
'ol-mapbox-style': 'ol-mapbox-style',
|
'ol-mapbox-style': 'ol-mapbox-style',
|
||||||
'ol/dom.js': 'ol/dom.js',
|
'ol/dom.js': 'ol/dom.js',
|
||||||
|
'ol/reproj.js': 'ol/reproj.js',
|
||||||
'react-vega': 'react-vega',
|
'react-vega': 'react-vega',
|
||||||
'react-dom': 'ReactDOM',
|
'react-dom': 'ReactDOM',
|
||||||
tailwindcss: 'tailwindcss',
|
tailwindcss: 'tailwindcss',
|
||||||
|
|||||||
Reference in New Issue
Block a user