Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 14:55

    ZakarFin on develop

    Move timeseries fields to subfo… Add toggle to showing timeserie… Use shared SpacedLabel-component and 2 more (compare)

  • 14:55
    ZakarFin closed #1514
  • 14:54

    ZakarFin on develop

    Prevent 'Function components ca… Add comment why we wrap childre… Merge pull request #1513 from Z… (compare)

  • 14:54
    ZakarFin closed #1513
  • 14:54
    ZakarFin milestoned #1513
  • 14:54
    ZakarFin milestoned #1514
  • 14:54
    ZakarFin edited #1514
  • 14:52
    sonarcloud[bot] commented #1514
  • 14:51
    ZakarFin opened #1514
  • 13:48
    sonarcloud[bot] commented #1513
  • 13:48
    ZakarFin opened #1513
  • 09:27
    ZakarFin closed #1512
  • 09:27

    ZakarFin on develop

    Show layer name as html Merge pull request #1512 from Z… (compare)

  • 09:27
    ZakarFin milestoned #1512
  • 09:21
    sonarcloud[bot] commented #1512
  • 09:21
    ZakarFin opened #1512
  • 06:12
    sonarcloud[bot] commented #1413
  • 06:12
    sonarcloud[bot] commented #1413
  • 06:12
    tuomo-hautala synchronize #1413
  • Apr 16 13:27

    ZakarFin on develop

    Repair re-adding of stats layer… Add ui control functions Merge pull request #1511 from k… (compare)

Klaus Puikkonen
@jezze_4_twitter
Thanks! Propably not, Erno Mäkinen send me some tips, but they did not help in this case. Do you know Is there any mail where should I contact?
Sami Mäkinen
@ZakarFin
You are asking in the right places for Oskari, but if you need to have that WMS-layer made available on the hkp-maps then there's the guys that told me they would send you an email about it yesterday. I'm trying to check what the contact you should use is for that
Where "made available" is that you would have it as an option on the admin UI and could add it to the published map as normal layer
Is that something that would solve the issue for you?
You mentioned that the RPC-example page doesn't work for you. How is it not working?
Doesn't open at all, or gives some js error or some of the examples don't work or?
Klaus Puikkonen
@jezze_4_twitter
Yes, I think we can try it next, thanks! The page is empty:
manifest.e126572….js:1 Uncaught SyntaxError: Unexpected token '<'
vendor.87bc6ac….js:1 Uncaught SyntaxError: Unexpected token '<'
app.b7f968b….js:1 Uncaught SyntaxError: Unexpected token '<'
Sami Mäkinen
@ZakarFin
Which browser are you using?
Klaus Puikkonen
@jezze_4_twitter
Chrome & Mac
Sami Mäkinen
@ZakarFin
Ok, works ok on Windows & Chrome
Klaus Puikkonen
@jezze_4_twitter
A few days ago it works for me too
Sami Mäkinen
@ZakarFin
Ye, I'm just using it
Maybe try a hard reload if there's something bad cached?
Hmm, tried with Safari and chrome and looks like it doesn't work on Mac .I'll try to take a look at it today if I can figure it out
Klaus Puikkonen
@jezze_4_twitter
I ask my Collegaue...try with windows..., empty page also...https://www.oskari.org/examples/rpc-api/rpc_example.html
That works ok about monday
Sami Mäkinen
@ZakarFin
image.png
Works fine for me on Windows but there's something fishy going on so I'll have a look at it
Sami Mäkinen
@ZakarFin
You can send an email to sovellustuki@maanmittauslaitos.fi if you would like to have some WMS-layer added to the selection in suomi.fi-maps. There should be an email coming your way in the near future anyway but I can't help more with that WMS-layer registration. If that is NOT what you want and would rather contribute code that allows published maps to add WMS-layers on the map that are NOT registered on the Oskari instance, then I can help you sketch up a plan for that
Sami Mäkinen
@ZakarFin
So the RPC-example page works from internal network but a proxy on our end blocks some requests and returns HTML for those JS-files on the RPC-example. I've identified the issue and send tickets to fix the issue on the network side but at this point I can't do more to fix it. But you can run the example locally if you clone, install and run https://github.com/oskariorg/oskari-vuerpc
while waiting for it to be fixed
Sami Mäkinen
@ZakarFin
The example should work now
Klaus Puikkonen
@jezze_4_twitter
Yes, thanks!
amilcar-capsus
@amilcar-capsus
Hello. If I wanna change the default color assigned to layers registered through WFS, should I do it from Geoserver? Or is there an option for that in the UI?
I tried editing styles on Geoserver, but it's not being reflected in Oskari
Sami Mäkinen
@ZakarFin
The latest Oskari-version added a visual UI for defining styles for WFS on the layer admin UI
Technically they are stored in oskari_maplayer table options column under some structure I can't remember off the top of my head but you can see that from the network traffic generated when saving a layer on demo.oskari.org for example
Depending if you want to inject it into db or if using the latest Oskari version and the admin UI it has to do this
Klaus Puikkonen
@jezze_4_twitter
Hi, about DrawingEvent. Any ideas how to know when the drawing is finished? There is property "isFinished", but I think that it tells when polygon is ready and valid. We would like to know the situation somehow when user wants to stop drawing. For example he/she is outside the polygon or double clicked
tmiosmauli
@tmiosmauli
Haven't tried it, but I understand isFinished is the value you want to use
If you click on Activate drawing mode and start clicking points on the map you'll see the log on the right going wild. Once you finish drawing with a double click the isFinished will be set to true.
Klaus Puikkonen
@jezze_4_twitter
Yes. it works fine when you start to draw. But when you finished (had a polygon ready and double click) and start the drawing again...the finished is always true then
tmiosmauli
@tmiosmauli
Hmm, not for me. I was able to draw another polygon and the events are just as they should be, first the isFinished is false and when I finish it gets set to true.
Klaus Puikkonen
@jezze_4_twitter
Strange, what I do wrong, I test it there: https://www.oskari.org/examples/rpc-api/rpc_example.html#/
tmiosmauli
@tmiosmauli
I'm also testing there. I tested drawing two more polygons and checked the log, seems to work as intended here..
Sami Mäkinen
@ZakarFin
Tested it also on https://www.oskari.org/examples/rpc-api/rpc_example.html#/Drawing
1) click activate drawing
2) draw a polygon ending it with double-click
-> Got a DrawingEvent with isFinished true
3) keep drawing another polygon
-> Getting events with isFinished false
4) Double-click to finish drawing
-> Got a DrawingEvent with isFinished true AND the geojson now has 2 polygons
The draw is still activate so if you keep clicking it will start another polygon and you will have isFinished false events on the log
Klaus Puikkonen
@jezze_4_twitter
Yes, you are correct for that....but continue that and edit the existing polygon (that one you first drew)...now isFinished is true
Sami Mäkinen
@ZakarFin
yes when you release the mouse button and stop dragging on the line/point then its finished again
while dragging on edit it is false
if you want to check validity you can do something like checking the feature properties. If the area property is a number it should be valid, if it's text then its not
        "properties": {
          "area": 31999484000.805706
        },
Klaus Puikkonen
@jezze_4_twitter
mmm...yes, good idea....and maybe I can check if the area is changed or not, thanks
Sami Mäkinen
@ZakarFin
        "properties": {
          "area": "Polygon self-intersection is not allowed. Draw a valid polygon to see the measurement result."
        },
So sometimes the area might have text^
Klaus Puikkonen
@jezze_4_twitter
Yeah, we validate the polygon already that. We try to solve situation when user wants to stop drawing (to stop drawing mode and do something else). Now we have button like "stop drawing" because without that the mode change may not be possible.
It is no problem, but I promise to study is it possible ot not
Sami Mäkinen
@ZakarFin
If you only need to draw a single shape you can use the allowMultipleDrawing: false option https://oskari.org/api/requests#2.2.0/mapping/drawtools/request/startdrawingrequest.md
that will stop the draw mode after the user finishes the sketch