c# - How to add markers to SKMaps? -
i developing android application skmaps. managed run load map, add route , start/stop navigation. can't seem find way add markers.
skmapsurfaceview has methods .addcircle or .addcustompoi.
i tried circle , drew nothing.
skcircle c = new skcircle(); c.circlecenter = new skcoordinate(longitude, latitude); c.radius = 50; c.outlinesize = 1; c.setcolor(new float[] { 0.0f, 0.0f, 0.0f }); c.setoutlinecolor(new float[] { 255.0f, 0.0f, 0.0f }); surface.addcircle(c);
then tried custom poi:
skmapcustompoi poi = new skmapcustompoi(); poi.category = skcategories.skpoicategory.skpoicategorybuilding; poi.location = new skcoordinate(longitude,latitude); poi.uniqueid = 195; surface.addcustompoi(poi);
this resulted in application crash. crashes no exception being caught visual studio.
how can add marker map? remove when no longer needed?
the online documentation pretty nonexistent. thing have found markers 'how rotate marker'.
the official documentation has "setcurrentpositioniconfromview" not need.
you maybe mean annotations? how this?
https://github.com/sjchristi/skobbler-mono-bindings#annotations
Comments
Post a Comment