New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AS no longer works #25
Comments
Sounds like the layers are not rendered correctly. I'll try to look into it this weekend! |
#24 might also be related |
Would it help you if I dichotomically tried other JOSM versions and found the last working one and hence the version introducing incompatibility? It would be a workaround, too. |
I replied by e-mail but it didn't go through. So, here's a copy&paste. Hi Paul, I made those tests and I determined that JOSM started drawing on the window border beginning with josm-snapshot-10819.jar. Cheers André.
|
On 2016-10-25 17:52, a-pirard wrote:
Hi Paul, I made those tests and I determined that JOSM started drawing on the Cheers André.
|
I did some debugging and found that the layers are not painted to the image. This is the line, which no longer works:
I'll try to find out what has changed in JOSM core with the help of the revisions you mentioned. |
looks like the AbstractTileSourceLayer does not draw any more via paint:
Drawing is now done via doPaint and drawInView in AbstractTileSourceLayer
The problem is, that drawInViewArea is private, so this method cannot be used to get the imagery. @don-vip I saw you made the changes to AbstractTileSourceLayer. As painted is deprecated and drawInViewArea is deprecated, how can the imagery be accessed via plugin? |
Thanks for working on this, Paul !!! As we are deep in the subject, may I please mention #20 which I meant not as a question but as a suggestion. If I'm correct: Distance tolerance setting should be in cm. |
@michaelzangl it seems I have broken AreaSelector plugin with core compatibility changes, do you see how to fix it? |
@don-vip @michaelzangl the easiest solution would be to call drawInViewArea in paint. I don't know if that has any side effects. |
I tested reimplementing paint and it looks like this will work fine. This is my fix:
|
This won't help much. As soon as #13386 is implemented, it won't work any more ;-). The changes were intended to make JOSM support multiple map views. All layers should use the It should return a There is currently no way to access the paintes that are used by the current map view. You would need to access the
Would this be enough for you? Some more notes while looking at your code:
|
Once there are multiple mapViews possible, there should be a way to access the active mapView from a plugin. I suppose there is an idea how to handle that, right? I believe it would be better to provide a method to paint one layer, not all together in one method. A plugin might want to access only specific layers and therefore the existing paint function would is easy to use. Regarding getLayeredImage: Regarding the preferences: |
I just looked at |
There you go: https://josm.openstreetmap.de/changeset/11226/josm It is best to feed it with the layers obtained using: Let me know if there are any issues with using the method. |
Thanks @michaelzangl for implementing the new method in JOSM core! |
On 2016-11-10 19:31, Paul wrote:
Are we supposed to use (test) it right now? Additionally, when activating my layer, I get the following dialog:
"OK" and the layer seems to display all right, though. It's definition: Cheers André. |
I just released the new plugin version, it should be available in the plugin section in a few minutes. The minimum JOSM version is now 11226. The projection error message is something from an update from JOSM core, not by the plugin. |
This allows plugins like the areaselector to access the drawing code of the map view. See JOSM/areaselector#25 git-svn-id: http://josm.openstreetmap.de/svn/trunk@11226 0c6e7542-c601-0410-84e7-c038aed88b3b
This allows plugins like the areaselector to access the drawing code of the map view. See JOSM/areaselector#25 git-svn-id: https://josm.openstreetmap.de/svn/trunk@11226 0c6e7542-c601-0410-84e7-c038aed88b3b
Since an unknown time, Area Selector no longer works. It draws 4 ways at the border of the window.
Neither with BE SPW PICC, nor with BE AGIV I was told, and not even as I can see with AT basemat.at which is your testbed I think.
I don't think the problem occurred with an AS update but rather with a JOSM one.
I ran josm-snapshot-10693.jar and AS did run, but very badly again.
It does not draws its ways onto the building walls but around them.
However, that shows better some interested friends what they will have when it will run superbly again.
TIA for fixing this !!!
The text was updated successfully, but these errors were encountered: