Drawing a Geometry Polygon using a geojson file
Posted: February 7th, 2024, 5:42 am
Hello CSPro Users,
I have and application in which I need it to open a map and draw a polygon depending on the offline file saved in the device. I have an file named ea.geojson, after opening a satellite map, the application should be a able to draw that EA boundary according to the ea.geojson file.
I have tried it bu it does not work, maybe if I put logic here and tell me guys what went wrong
mymap.setBaseMap(Satellite);
geometry boundary;
boundary.load("./Maps/ea.geojson");
numeric geometryId = mymap.addGeometry(boundary);
mymap.show();
Staellite map opens successful but it does not show the EA boundary, loaded from thr geojson file.
Any help please, what is wrong is my syntax?
Thanks in advanced
I have and application in which I need it to open a map and draw a polygon depending on the offline file saved in the device. I have an file named ea.geojson, after opening a satellite map, the application should be a able to draw that EA boundary according to the ea.geojson file.
I have tried it bu it does not work, maybe if I put logic here and tell me guys what went wrong
mymap.setBaseMap(Satellite);
geometry boundary;
boundary.load("./Maps/ea.geojson");
numeric geometryId = mymap.addGeometry(boundary);
mymap.show();
Staellite map opens successful but it does not show the EA boundary, loaded from thr geojson file.
Any help please, what is wrong is my syntax?
Thanks in advanced