adamdsouza1 / gheat

Automatically exported from code.google.com/p/gheat
0 stars 0 forks source link

Support for Google Maps JavaScript v3 #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
How big of a task would it be to port this to v3 of the API?  Would it just be 
an update on the client side, or does the server portion require changes too?

Would love to use this in my project but we're tied to v3.

Thanks.

Original issue reported on code.google.com by drewnoakes on 11 Nov 2010 at 1:45

GoogleCodeExporter commented 8 years ago
I'm not familiar with v3 of the Google's API, but I would expect it to just be 
a JavaScript change. Give it a shot and let us know if you get it working.

Original comment by whit537@gmail.com on 11 Nov 2010 at 7:17

GoogleCodeExporter commented 8 years ago
Thanks for the reply.  In the end I wrote my own server-side and client-side 
code.  As you say, the JS involved was very simple so I expect it'd be a 
straightforward port.

I'm not sure how to format code in these comments so will hope it's uses the 
wiki formatting :)

{{{
// assuming we have a 'google.maps.Map' object assigned to 'map'

map.overlayMapTypes.insertAt(0, new google.maps.ImageMapType({
    getTileUrl: function (coord, zoom) {
        return '/maps/heatmaptile?zoom=' + zoom + '&x=' + coord.x + '&y=' + coord.y;
    },
    tileSize: new google.maps.Size(256, 256),
    isPng: true
}));
}}}

Original comment by drewnoakes on 18 Nov 2010 at 2:45