Giter Site home page Giter Site logo

Comments (9)

pduchesne avatar pduchesne commented on June 27, 2024

Hello Shubham,

I tried that resource on a local instance of mine and it worked fine.
can you share a link to an online CKAN instance that reproduces the problem?

from ckanext-geoview.

shubham-mahajan avatar shubham-mahajan commented on June 27, 2024

Hi @pduchesne ,

I am also working on local instance only, but if you require I will set up the same in public instance and share the same. The basic difference I am able to see with a working site and my instance are mainly mapconfig options in the inspection of the elements. Is there any dependency on other extension or Framework?

from ckanext-geoview.

pduchesne avatar pduchesne commented on June 27, 2024

Can you share your ckanext.spatial.* and ckanext.geoview.* values from your config? And your basemaps.json config, if you have one.

from ckanext-geoview.

shubham-mahajan avatar shubham-mahajan commented on June 27, 2024

@pduchesne

I have not installed the spatial extension, is it required for geoview to work, it's not there in documentation.

ckan.plugins = stats geo_view text_view image_view resource_proxy
ckan.views.default = image_view geo_view
ckan.spatial.srid = 4326
ckanext.geoview.ol_viewer.formats = wms kml geojson

from ckanext-geoview.

pduchesne avatar pduchesne commented on June 27, 2024

OK, I got it.

There's been a regression causing the default basemap to fail. I'll fix that.

In the mean time, to be able to work with your current install, you'll have to explicitly specify a basemap in your config, f.i. :

ckanext.spatial.common_map.type = XYZ
ckanext.spatial.common_map.custom.url = http://tile.openstreetmap.org/{z}/{x}/{y}.png
ckanext.spatial.common_map.attribution = Map tiles & Data by OpenStreetMap, under CC BY SA.

from ckanext-geoview.

pduchesne avatar pduchesne commented on June 27, 2024

my bad, you should use this (custom type) :

ckanext.spatial.common_map.type = custom
ckanext.spatial.common_map.custom.url = http://tile.openstreetmap.org/{z}/{x}/{y}.png
ckanext.spatial.common_map.attribution = Map tiles & Data by OpenStreetMap, under CC BY SA.

from ckanext-geoview.

shubham-mahajan avatar shubham-mahajan commented on June 27, 2024

Hi @pduchesne

Thanks for providing the configuration, it's displaying the display. But default, MAP Viewer(Open Layers) is not getting created for KML files/URLs. Is there any option or configuration entry for default view as MAP Viewer for all the KML files.

P.S.
Configuration entries used are:-

ckan.plugins = stats geo_view text_view image_view resource_proxy
ckan.views.default = image_view geo_view
ckan.spatial.srid = 4326
ckanext.geoview.ol_viewer.formats = wms kml geojson
ckanext.spatial.common_map.type = custom
ckanext.spatial.common_map.custom.url = http://tile.openstreetmap.org/{z}/{x}/{y}.png
ckanext.spatial.common_map.attribution = Map tiles & Data by OpenStreetMap, under CC BY SA.

from ckanext-geoview.

pduchesne avatar pduchesne commented on June 27, 2024

the correct config key for default views is ckan.views.default_views, not ckan.views.default

from ckanext-geoview.

shubham-mahajan avatar shubham-mahajan commented on June 27, 2024

@pduchesne

Thanks a lot, everything is working fine now. For default view, it was a typo.

from ckanext-geoview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.