javascript - KML invert country border -


i need invert kml file poland country. need white overlay on other countries, poland should visible. http://cv.bluewolf.pl/kml-map/ have problem converting borders, , place white overlay on rest of world. 1 country (poland) should visible.

i tried use kml winding reversal tool geocodezip can't find tutorial or documentation. tried mask-kml-polygons github transform kml file don't work.

somone tell me can use effect on map? http://www.geocodezip.com/geoxml3_test/v3_geoxml3_netherlandsinverted.html

according winding reversal tool, polygons in pol_adm0.kml wind in negative direction.

 name poland outer -0.000029027214395682677 outer -0.00011758931589156418 outer -0.00004442846750407625 outer -0.0011201874443713677 outer -0.00001914283006954065 outer -0.0002913248119966738 outer -0.000060512058212225384 outer -0.0055139375892849785 outer -0.000024386593850067584 outer -0.000016341876744263573 outer -0.00001358358349534683 outer -0.00022344898320625362 outer -0.010447627167081919 outer -0.0026826606504073425 outer -0.07199650440122696 outer -0.00004660667070766067 outer -0.007425361581113066 outer -81.8301486672533 

all need add outerboundaryis winds in opposite direction , change existing outerboundaryis tags innerboundaryis tags. here <outerboundaryis> winds in correct direction:

<outerboundaryis><linearring><coordinates> 180,85 90,85 0,85 -90,85 -180,85 -180,0 -180,-85 -90,-85 0,-85 90,-85 180,-85 180,0 180,85  </coordinates></linearring></outerboundaryis> 

updated kmz file (displayed on google maps javascript api v3 map)

screenshot of poland inverted polygon

note: works native google maps polygons (in geoxml3), not kmllayer.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -