Hi all,
I may have found a defect or limit with the Static Maps api. When the
url contains an encoded path and the view of that path covers a large
area on the earth then the result is a map of Africa. Smaller areas
work correctly. Note that the length of the URL for the large area is
1024 characters.

The large area is a route in southern British Columbia. The route is
190km long and the largest bound is just over 1 degree. The small area
is roughly 1km long.

If there is a limit to the area that can be shown then this is a
documentation defect. If the Static Maps api designers believe that it
can show larger areas then this a code defect.

I hope that there is no defect in the example data I include below.
The two URLs were generated by the same code. A java version of the
Douglas-Peucker algorithm from
http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/PolylineEncoderClass.html
is used.

Is there a better way I might do this?

Many thanks for your help.

Cheers,
Edward

Small area:
http://maps.google.com/maps/api/staticmap?maptype=terrain&path=enc:_a%7BjH%7Ez%7D%7BUp%40RGj%40BPA%5Ct%40jNM%5E%3FHEFCP%3FTETEXu%40tM%3Fb%40%3F%60%40Ah%40Ch%40pAjM%3Fp%40Cl%40Bj%40Dj%40jCzLfPtP%7ECzD%7EFnJ_A%7EHzNbEp%40zBf%40%7CEmI_%40HtEbApHlJ%7EDfLxMfM%7ELxGnL%7EFtK%60ElK%7EFdKmCrKoBrKKxKXhLv%40%7EKhA%60L%7C%40%60LhA%7CKtBfLKvKjClKrEbKvFpJjDbJl%40bJl%40%7EIlB%7CIrIvIlBbInD%7EHxHdHlDxG%7CTlGtA%5DpAd%40fAw%40tHhEhKbEtAnDrDrDd%40%60DlA%7CCdAzC%5CzCKbDt%40%7CCb%40zCp%40vCExCR%7ECG%7CC%7C%40%60Dr%40tCR%7EC%5...%40pB_%40nBw%40jBUzAi%40rAk%40p%40%5Bd%40_%40%60%40MP%7BAlM_%40YOYKOGWISI_%40%3FS%3FY%3FWCQEUESAIE%5B%40MDOAI%40IDOHOJ%5BFi%40Bo%40BWLu%40Cc%40BWGu%40%40c%40N%5DD_%40B_%40m%40e%40%3FUDc%40Jk%40%3F_%40k%40WGWMUUMi%40OEAKMK%5BACEMI_%40EUG_%40AC%40q%40ES%3F%5B%40G%60%40gNa%40%7BEf%40%7DF_AwFK%7DECiFIqFA_GjGsNpIcHpFoDfOrFob%40cTkJaBaDmHaCwFiBaEiBaD_%40%7BB%5DkBAGKq%40%3Fi%40%3Fq%40Ki%40Ck%40F%7B%40%40G%40k%40%40UIo%40Am%40BOAGCk%40DQFYAIDg%40As%40%3FQAg%40A%5DHoM%7DDZGHIFa%40JWROPDXLzM&size=90x90&sensor=false

Large area:
http://maps.google.com/maps/api/staticmap?maptype=terrain&path=enc:_a%7BjH%7Ez%7D%7BUp%40RGj%40BPA%5Ct%40jNM%5E%3FHEFCP%3FTETEXu%40tM%3Fb%40%3F%60%40Ah%40Ch%40pAjM%3Fp%40Cl%40Bj%40Dj%40jCzLfPtP%7ECzD%7EFnJ_A%7EHzNbEp%40zBf%40%7CEmI_%40HtEbApHlJ%7EDfLxMfM%7ELxGnL%7EFtK%60ElK%7EFdKmCrKoBrKKxKXhLv%40%7EKhA%60L%7C%40%60LhA%7CKtBfLKvKjClKrEbKvFpJjDbJl%40bJl%40%7EIlB%7CIrIvIlBbInD%7EHxHdHlDxG%7CTlGtA%5DpAd%40fAw%40tHhEhKbEtAnDrDrDd%40%60DlA%7CCdAzC%5CzCKbDt%40%7CCb%40zCp%40vCExCR%7ECG%7CC%7C%40%60Dr%40tCR%7EC%5...%40pB_%40nBw%40jBUzAi%40rAk%40p%40%5Bd%40_%40%60%40MP%7BAlM_%40YOYKOGWISI_%40%3FS%3FY%3FWCQEUESAIE%5B%40MDOAI%40IDOHOJ%5BFi%40Bo%40BWLu%40Cc%40BWGu%40%40c%40N%5DD_%40B_%40m%40e%40%3FUDc%40Jk%40%3F_%40k%40WGWMUUMi%40OEAKMK%5BACEMI_%40EUG_%40AC%40q%40ES%3F%5B%40G%60%40gNa%40%7BEf%40%7DF_AwFK%7DECiFIqFA_GjGsNpIcHpFoDfOrFob%40cTkJaBaDmHaCwFiBaEiBaD_%40%7BB%5DkBAGKq%40%3Fi%40%3Fq%40Ki%40Ck%40F%7B%40%40G%40k%40%40UIo%40Am%40BOAGCk%40DQFYAIDg%40As%40%3FQAg%40A%5DHoM%7DDZGHIFa%40JWROPDXLzM&size=90x90&sensor=false

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to