Tag Info

New answers tagged

0

I found the reason, the sdk will use the center of the drawable as the anchor when draw the symbol, so in my case , I just set the offsetY to make it work: PictureMarkerSymbol sym = new PictureMarkerSymbol(d); //sym.setOffsetX(-convertToDp(d.getIntrinsicWidth()) / 2); not necessary sym.setOffsetY(-convertToDp(d.getIntrinsicHeight()) / 2);


0

FeatureLayers correspond to one FeatureTable, in your case ShapefileFeatureTable, which you correctly passed to the FeatureLayer constructor. In order for your Shapefile to be correctly displayed the getSpatialReference() value must match the spatial reference of the map to which the FeatureLayer is added. The Streets basemap you add in your layout is in ...


0

First, I was unable to download the zip to inspect the shapefile. Second, the var: mapoptions.center="32.713408, -117.162454" I'm not sure about this specific SDK but traditionally such vars are in the form X,Y. Unless you're near the south pole and somewhere 32 degrees east of GMT, I would guess you want to reverse your center coordinates. Your code ...



Top 50 recent answers are included