Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 30 11:26

    ZakarFin on revert-1358-cesium-update

    (compare)

  • Oct 30 11:26

    ZakarFin on develop

    Revert "Update OpenLayers and C… Merge pull request #1359 from o… (compare)

  • Oct 30 11:26
    ZakarFin closed #1359
  • Oct 30 11:26
    ZakarFin edited #1359
  • Oct 30 11:26
    sonarcloud[bot] commented #1359
  • Oct 30 11:26
    ZakarFin milestoned #1359
  • Oct 30 11:25
    ZakarFin opened #1359
  • Oct 30 11:25

    ZakarFin on revert-1358-cesium-update

    Revert "Update OpenLayers and C… (compare)

  • Oct 30 10:41

    ZakarFin on develop

    Update Openlayers and mapbox-st… Bravely update cesium to latest… Merge pull request #1358 from Z… (compare)

  • Oct 30 10:41
    ZakarFin closed #1358
  • Oct 30 10:25
    sonarcloud[bot] commented #1358
  • Oct 30 10:23
    ZakarFin milestoned #1358
  • Oct 30 10:22
    ZakarFin opened #1358
  • Oct 30 09:22
    ZakarFin edited #660
  • Oct 30 09:21

    ZakarFin on develop

    Write headers before connecting Merge pull request #660 from Za… (compare)

  • Oct 30 09:21
    ZakarFin closed #660
  • Oct 30 09:20
    sonarcloud[bot] commented #660
  • Oct 30 09:19
    ZakarFin milestoned #660
  • Oct 30 09:19
    ZakarFin opened #660
  • Oct 29 13:17
    ZakarFin commented #232
amilcar-capsus
@amilcar-capsus
I'll have to check it.
amilcar-capsus
@amilcar-capsus
I got this error this time:
2020-09-03 14:38:09,273 ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springConfig': Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Error while retrieving the list of applied migrations from metadata table "public"."oskari_status"
Sami Mäkinen
@ZakarFin
Ok, haven't seen that before. Is your database running and the configuration correct in oskari-ext.properties?
Guess the Flyway library is trying to run some sql like select * from oskari_statusto see what's the state of the migrations on the database but it's failing for some reason
amilcar-capsus
@amilcar-capsus
Ah, I totally forgot to configure that file on that part. I'll check it and see if that makes a difference.
Timo Mouhu
@tmouhu
Hey, What kind of area fill patterns does Oskari support? Looking at the documentation there's featureStyle.fill.area.pattern, but no examples.
Sami Mäkinen
@ZakarFin
I think the patterns for user generated content in paikkatietoikkuna.fi for example are the ones supported
Trying to paste an image but its not working
but vertical lines, lines at ~45 degree, solid or transparent and the lines can be of two different widths
eh, horizontal lines instead of vertical
Sami Mäkinen
@ZakarFin
so the values should be number between 0-5
Timo Mouhu
@tmouhu
Thanks @ZakarFin, Helps enough!
Sami Mäkinen
@ZakarFin
:+1:
amilcar-capsus
@amilcar-capsus
Hi. After modifying the properties file, I could make my server extension work. :thumbsup:
I have an unrelated question. Is there a way for users to register into our Oskari instance? And if so, how easy/complicated would it be to add this functionality? Thanks in advance.
I'm aware that admin users can add other users, but we were wondering about making this a bit more hands-free if at all possible.
Sami Mäkinen
@ZakarFin
Nice! There's existing code to let users register to an Oskari instance. Here's instructions how to enable it: https://oskari.org/documentation/features/usermanagement
under "User registration"
you need an smtp server as the registration is based on users giving an email address -> receiving an email on that address -> completing registration on the Oskari instance
amilcar-capsus
@amilcar-capsus
Hello. I'm trying to activate the download basket from oskari-frontend-contrib. I added it to geoportal/main.js and geoportal-3d/main.js and used npm run build and trying to move it to my dist/ folder, but I still don't see anything showing up. Am I missing something on the frontend? Or is it something I'm missing in the sample-server-extension?
amilcar-capsus
@amilcar-capsus
I'm running tests, but I think I need to change the dependencyManagement in the pom.xml since I'm working with 1.55.1, and I believe I need to add the download-basket dependency on both app-resources/pom.xml and app-specific-code/pom.xml . I just would like some sort of confirmation on whether I'm on the right track, or I'm looking at the wrong thing to activate this bundle.
Sami Mäkinen
@ZakarFin
If you are not using the 3d-geoportal you can just remove the folder from sample-application applications folder with embedded-3d. But you are on the right track:
  • adding import for the bundle to main.js will make build package the required frontend code to oskari.min.js
  • adding the bundle for the app setups in database is required so the bundle will be started as part of app (you can package the frontend code but you still need to add it to the app setup on db since you can start bundles on some condition like the admin-bundles for admin)
I think you are missing the second part
Adding a bundle to apps can be done with flyway so you don't need to start over from empty db. In 2.0 you can do AppSetupHelper.addBundleToApps(connection, bundleID);like here https://github.com/nls-oskari/kartta.paikkatietoikkuna.fi/blob/master/app-resources/src/main/java/flyway/pti/V3_0_3__add_inspire_bundle.java
bundle id would be "download-basket" I think. You can check from portti_bundle table on 1.55.1 and oskari_bundle table on 2.0+
Sami Mäkinen
@ZakarFin

Looks like the download-basket has a maven module as well so you will need to add

<dependency>
    <groupId>fi.nls.oskari</groupId>
    <artifactId>download-basket</artifactId>
</dependency>

in sample-server-extension/webapp-map/pom.xml

^in 1.55.1.
On 2.0 groupId is org.oskari
Sami Mäkinen
@ZakarFin
but that's pretty much all I know about it. I think Sitowise contributed the code but there's not too much documentation on how to use it or set it up on an Oskari instance
amilcar-capsus
@amilcar-capsus
Thanks. I've continued tests and I managed to compile an oskari-map.war file, as well as add the download-basket to the portti_bundle table and added configurations to the oskari-ext.properties files, but I can't seem to get it working.
I'll see if I can contact them for further guidance.
goryk
@goryk
Hi, I want to change how data is displayed on feature data popup. Basically I want to hide some non-essential datapoints and maybe do some UI changes to make it more readable. What's the best place to start looking?
Sami Mäkinen
@ZakarFin
for vector features? or WMS-based layers?
goryk
@goryk
vector features
Sami Mäkinen
@ZakarFin
I just recently added some support for better formatting support. I'll try to find the pr
Let me know how it goes/looking for input if it's good or needs improving still
Sami Mäkinen
@ZakarFin
Should move that documentation to oskari.org
Here's an example where it's configured for myplaces https://github.com/oskariorg/oskari-server/pull/602/files
So that works for features loaded from WFS/OGC API features services. If you need to have something similar to vector features added manually/via RPC/AddFeaturesToMapRequest to the map it might be a different story
Sami Mäkinen
@ZakarFin

This is the relevant file: https://github.com/ZakarFin/oskari-frontend/blob/master/bundles/mapping/mapmodule/plugin/getinfo/ValueFormatters.js

I'm not sure if you can load it on your app with import { setFormatter } from 'oskari-frontend!bundles/mapping/mapmodule/plugin/getinfo/ValueFormatters' to add custom formatters but you can try

Anyway let me know if you try and if it works or not
goryk
@goryk
I ended up just modifying the files themselves but I got few other questions. Can you change options for individual user created layers (like changing min and max scales). I know you can change it for all user created layers from database but I want individual layers to have different options. Also is there a way to make vector area fill empty in normal state and on mouseover have some color fill.
Sami Mäkinen
@ZakarFin
Ok, that might be problematic with updating as you have to fork the oskari-frontend to do that. At the moment it isn't supported to have different scale-ranges for user generated layers. You will need to use the normal layers to have that kind of control. Though you could do somekind of a hack like setting the scale-limits for layers on the frontend based on some flag on the userlayers. I'm not saying it's a good idea but I think it could be done. I would probably see into adding the min/maxscale keys on the userlayer options object and add handling for it on the frontend. If you are going to do this please do a PR for it to prevent it from becoming a hack :)
This would probably result in the min/maxscale columns being removed from oskari_maplayer table at some point and moving the limits to options there as well in the future.
You don't need to change the oskari_maplayer stuff ^ but if you can make the PR for the userlayers we will probably move to that direction at some point with the registered layers as well