Whole world PNG on top of google api v3

180 views
Skip to first unread message

taviram

unread,
Jan 9, 2013, 3:56:10 AM1/9/13
to google-map...@googlegroups.com

Hi,
I have a site of atlas I am building , i have maps I load polygons of all the world.
Now I have to add also PNG files of whole world and even partial as the images I've loaded.
I've tried to give many SW and NE of the image and it still load distorted.

Is it a known problem? is it optional to add overlay PNG on all the world correctly?
very imported!!!! please help!!!!

as follow : http://screencast.com/t/qojdHHfui

<code>
 function overlayAdd() {
      
        var sw = new google.maps.LatLng(-47.683079,-114.744087  );
        var ne = new google.maps.LatLng(79.939901,75.672887  );
      
        var bounds = new google.maps.LatLngBounds(sw, ne);
       
        overlay = new ProjectedOverlay(map, 'world.png', bounds, {});
        document.getElementById("overlayToggle").innerHTML = '<a href="javascript:overlayRemove()">Remove Overlay</a>';
    }
<code>





geoco...@gmail.com

unread,
Jan 9, 2013, 10:03:42 AM1/9/13
to Google Maps JavaScript API v3
On Jan 9, 12:56 am, taviram <tavi...@gmail.com> wrote:
> <https://lh6.googleusercontent.com/-G-vahRVH3ug/UO0vIsHe3_I/AAAAAAAABo...>
>
> <https://lh6.googleusercontent.com/-zfcB_iktb0k/UO0u2kw2X-I/AAAAAAAABo...>
> Hi,
> I have a site of atlas I am building , i have maps I load polygons > of all the world.
> Now I have to add also PNG files of whole world and even partial > as the images I've loaded.
> I've tried to give many SW and NE of the image and it still load
> distorted.
>
> Is it a known problem? is it optional to add overlay PNG on all
> the world correctly?

Looks like the projection is wrong. You might need to change the
projection of the image, or use ProjectedOverly:
http://www.geocodezip.com/geoxml3_test/ProjectedOverlayTest.html


> very imported!!!! please help!!!!

http://www.catb.org/~esr/faqs/smart-questions.html#urgent

-- Larry
Reply all
Reply to author
Forward
Message has been deleted
0 new messages