<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hello,<br>I have built a (using django postgis and openlayers) display about 200 specific <span style="border-bottom: 2px dotted rgb(54, 99, 136); cursor: pointer;" class="yshortcuts" id="lw_1303759241_0">polygon shapes</span> consisting of clusters of counties in the US (including <span class="yshortcuts" id="lw_1303759241_1">Alaska</span>, <span class="yshortcuts" id="lw_1303759241_2">Puerto Rico</span> and <span class="yshortcuts" id="lw_1303759241_3">Hawaii</span>). I am displaying using <span class="yshortcuts" id="lw_1303759241_4">Google</span>
as base map and then applying the polygons to features which I attach
to one of 10 layers. I am transforming the data to projection 900913 and
displaying the features as vectors.<br><br>I have two issues I am looking for feedback or suggestions on:<br>1. Map load optimization:<br>The
data is almost 1MB. I have applied the simplify utility and whittled
down the number of points in each polygon (which was as high as 8,000)
down to an average of 150 per shape. (Some polygons cant be simplfied or
they will lose their entire shape). I tried to unionagg() the entire
list of
polygons into 1 but I lose so much definition and will also lose the
ability to enhance the map by allowing individual selection and
labelling. Is there a way to get the data set even smaller without
losing shape quality?<br><br>2. One of the polygons is in Alaska, and
encompasses the islands in the Aleutians West. Upon completion of the
building the map, I'm calling map.zoomToExtent(bounds); (where bounds is
the collective bounds of all of the polygons) and because Aleutians
West is so close in proximity to the IDL (<span class="yshortcuts" id="lw_1303759241_5">international date line</span>)
it is placing part of the polygon on either side of the map so it is
zooming way out (so you can see the whole world map) and splitting
repeating the polygon on the respective portion of the map. Is there a
way to move the IDL so it wont try to split it in this way?<br><br><br>Thanks for any knowledge you can share.<br><br>Coop</div>
</div></body></html>