[fixed] polygon and polyline min/max x after translations

Change-Id: I8da0331ac16275a86aaa34d603203abf09ab47ae
[fixed] compiling warnings

Change-Id: I40360fcf9b5dff731782a80ee69b5d9464292bfe