geary / election-results

Automatically exported from code.google.com/p/election-results
0 stars 0 forks source link

Default view - Zoom in pls #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the default view we can zoom in to the country more. The country should be 
the only thing we see in the view (Black Sea in its entirety is too much, we 
dont need to see cyprus in the south etc) 

Original issue reported on code.google.com by zeyn...@google.com on 2 Jun 2011 at 2:05

GoogleCodeExporter commented 9 years ago
An ordinary Google map can only zoom by doubling the height and width at each 
zoom level - and the next available zoom level is too big, as you can see by 
zooming in one level in the gadget.

However, the code that draws the province/district polygons can scale to 
fractional zoom levels.

So there are a few possible solutions:

1) Use a polygon-only map without the map background, so you'd see the province 
borders and fill colors, but not the city names, land/water, other countries, 
etc. Similarly, when you zoom in on a province you'd see only the borders and 
fill colors for that province. This is similar to map treatments you've 
probably seen on other news sites. Every map view (nationwide or province) 
would be sized to fill the gadget completely, but you wouldn't be able to zoom 
in further or pan around. You'd view districts for each province by switching 
from province to province using the selector.

2) For the nationwide map only, capture and manually stretch a map background 
image to fit the gadget size, and draw the polygons on that. This is only 
practical for a single gadget size because of the manual steps - if you use a 
different gadget size it would revert to the normal Google map for the 
nationwide view. When you zoom in or view a province it would switch to a 
normal Google map, so you could zoom and pan and you'd have a map background, 
but the zooming would be limited to the usual doubling and halving - no 
in-between sizes. You can see a working example of this approach here:

http://maps.google.com/help/maps/elections/#2008_election

3) We could also mix and match, with a polygon-only map with no map background 
for the nationwide view, and switching to a Google map for the zoomed in 
province views. This may seem a bit odd, but it would give you things like 
roads and city labels when you're zoomed in - which is probably when you need 
them to help get your bearings - and a clean and simple map with no 
distractions for the nationwide view.

Original comment by m...@mg.to on 2 Jun 2011 at 9:46

GoogleCodeExporter commented 9 years ago
Or...

4) Give the gadget a larger iframe on the host page, so it zooms in one more 
level.

Looks like we're doing that for this election instead of one of the more 
complicated solutions. (Thank goodness!)

Zeynep, reassigning to you, feel free to close. Thanks!

Original comment by m...@mg.to on 9 Jun 2011 at 12:21

GoogleCodeExporter commented 9 years ago

Original comment by zeyn...@google.com on 9 Jun 2011 at 9:30