Comments (5)
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.
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.
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.
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.
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)
- Opening ECW Files HOT 8
- Index out of range exception in ShapeFileDrawing.cp
- Linestyle ignored when drawing Polygon
- DrawPolygon Crash in MFC HOT 3
- Delphi: MapWinGIS_TLB.pas doesn't compile HOT 3
- can not run application with debug HOT 2
- Tiles display incorrect when the projection is not WGS84 HOT 1
- CShapefileDrawer sfDrawer in Map_Drawing.cpp missing a param [zoom]. HOT 3
- May invalid SpatialIndex file(.mwd\.mwx) cause shape file not display correctly. HOT 1
- Line patterns with markers do not work properly HOT 2
- Gdal 3.4.0 Load Geotiff Not Show HOT 29
- shift in vertex after mouseUp while using snap tool when vertex edit
- MapWinGis.ocx fail to registered in Visual studio 2022 HOT 1
- Transparent fill HOT 1
- Points layer display order may in correct.
- Shape.get_XY does not work because of wrong interface-description HOT 1
- Issue between MapWinGIS 5.3.0 and CrystalReports 13.0.31.4010
- i get this error, pls help me
- Error: Image.Save with creating world file HOT 2
- While I input an expression like “$perimeter 9”, then caused the crash.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapwingis.