java - Polygon on Map doesn't show semi transparent color -
i working on google map application in plotting polygon on map not displaying polygon semi transparent color fill color. following code
int strokecolor = 0xffff0000; int fillcolor = 0x44ff0000; polygon polygon = map.addpolygon(new polygonoptions() .add(new latlng(fences.get(northwestpoint).lat, fences.get(northwestpoint).lng), new latlng(fences.get(northeastpoint).lat, fences.get(northeastpoint).lng), new latlng(fences.get(southeastpoint).lat, fences.get(southeastpoint).lng), new latlng(fences.get(southwestpoint).lat, fences.get(southwestpoint).lng), new latlng(fences.get(northwestpoint).lat, fences.get(northwestpoint).lng)) .strokecolor(strokecolor) .strokewidth(2) .fillcolor(fillcolor));
the code seems correct, maybe problem on calling order? in code do:
public polygonoptions buildpolygonoptions() { return new polygonoptions().fillcolor(fillcolor).strokecolor(strokecolor).strokewidth(strokewidth).zindex(zindex); }
i don't know if real motivation (i should have no sense) worths try. in addition, in order tests use 2 different colors fill , stroke, can better see 1 , other.
Comments
Post a Comment