geomoose / gm3

GeoMoose 3.0 Development. Please submit pull requests to the 'main' branch.
https://www.geomoose.org
MIT License
58 stars 59 forks source link

404 for map file #864

Open yogeshshejwadkar opened 3 weeks ago

yogeshshejwadkar commented 3 weeks ago

I have added one layer in mapbook and also added the shape file with map file to the data folder. In mapbook I mentioned the correct path of that map file, but still 404 error is showing.

When I open that path from my browser, it is showing the map file correctly.

Please let me know where I am doing mistake.

Also showing another error below Uncaught TypeError: Cannot read properties of null (reading 'favorite') at isFavorite (layer-favorite.js:38:31) at LayerFavorite.render (layer-favorite.js:45:24) at finishClassComponent (react-dom.development.js:18470:31) at updateClassComponent (react-dom.development.js:18423:24) at beginWork$1 (react-dom.development.js:20186:16) at HTMLUnknownElement.callCallback (react-dom.development.js:336:14) at Object.invokeGuardedCallbackDev (react-dom.development.js:385:16) at invokeGuardedCallback (react-dom.development.js:440:31) at beginWork$$1 (react-dom.development.js:25780:7) at performUnitOfWork (react-dom.development.js:24695:12)

The above error occurred in the component: in LayerFavorite (created by Connect(LayerFavorite)) in Connect(LayerFavorite) (created by CatalogLayer) in div (created by CatalogLayer) in div (created by CatalogLayer) in CatalogLayer (created by Connect(CatalogLayer)) in Connect(CatalogLayer) (created by Catalog) in div (created by CatalogGroup) in div (created by CatalogGroup) in CatalogGroup (created by Catalog) in div (created by CatalogGroup) in div (created by CatalogGroup) in CatalogGroup (created by Catalog) in div (created by Catalog) in Provider (created by Catalog) in Catalog (created by Connect(Catalog)) in Connect(Catalog)

Consider adding an error boundary to your tree to customize error handling behavior. Visit https://fb.me/react-error-boundaries to learn more about error boundaries.

klassenjs commented 3 weeks ago

It's really hard to tell based on your description what is wrong. I don't understand where a 404 would come from.

All I can say is usually the "null" errors in GeoMoose are from an error in parsing the mapbook. I wish we had better error reporting there. My guess is something is misspelled or an ID doesn't match between the catalog and map-source sections.

yogeshshejwadkar commented 3 weeks ago

Below is the code Mapbook

<?xml version="1.0"?>

Drawing and Markup layer can be used to add user defined shapes to the map.
Drawing
]]>