Giter VIP home page Giter VIP logo

Comments (5)

MarkCupitt avatar MarkCupitt commented on July 23, 2024

This is directly related to #28 .. my problem was the ClearDrawing was removing the layer but no error generated drawing to a nonexistent drawing layer.

So this code immediately after drawing on the layer was giving

            Dim b = Map_Nav.LastErrorCode
            Dim c = Map_Nav.get_ErrorMsg(Map_Nav.LastErrorCode)
b=1202
c="No Error"

If the layer was destroyed, then there should be an error generated ..

from mapwingis.

pmeems avatar pmeems commented on July 23, 2024

Did you have a look at the examples mentioned here: http://www.mapwindow.org/documentation/mapwingis4.9/group__map__drawing__layers.html#gacbd4270e2ee82c97def2d169f54bb518

from mapwingis.

MarkCupitt avatar MarkCupitt commented on July 23, 2024

Yes, I used them .. If I just add the layer I can draw, if I clear the layer, then it will not draw. Drawing on a nonexistant layer (after clearing it) returns error code 1202 with Description "No Error"

from mapwingis.

pmeems avatar pmeems commented on July 23, 2024

Is this still an issue with the latest version of MapWinGIS?

I'm closing this issue.
If needed you can repost at our MapWinGIS forum

from mapwingis.

jerryfaust avatar jerryfaust commented on July 23, 2024

This is no longer an issue with the latest code. When drawing to a removed (Cleared) drawing layer, the call returns -1, as it should, and the error code/string indicates an invalid layer handle.

from mapwingis.

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.