In case its of interest to anyone, I've put up a minimalist example of WMS
overlays in Google Maps API v3 at
http://lyceum.massgis.state.ma.us/wiki/doku.php?id=googlemapsv3:home  The
example includes converting to EPSG 900913 coordinates.

On Tue, Mar 2, 2010 at 6:15 PM, Josh Rosenthal <[email protected]> wrote:

> Very nice.  Browsing through your code it actually makes it rather
> straightforward.
>
> 1) Create a MercatorProjection class, as per:
> http://earthalerts.manyjourneys.com/web/js/mapProjection.js
> 2) Construct an ImageMapType, where getTileUrl converts coord into upper
> left and lower right points (which shows that I'd misunderstood the coord).
>
> var lULP = new google.maps.Point(coord.x*256,(coord.y+1)*256);
> var lLRP = new google.maps.Point((coord.x+1)*256,coord.y*256);
>
> We use our MercatorProjection to convert those points from Div Pixel space
> to Lat/Lon, given our zoom... and then we have coordinates and can finish
> our url.
>
> Which leads to a question...
> 3) EPSG:4326?  Should we be converting to and using EPSG 3785 (or 41001,
> or 900913, or whichever our WMS supports)?
>
> Thank you very much,
>
> Josh
>
>
> On Tue, Mar 2, 2010 at 4:10 PM, KakaduDreamer <[email protected]> wrote:
>
>>
>> I was struggling with this myself.  I finally managed to get various
>> WMS-based overlays working using google.maps.ImageMapType
>>
>> http://earthalerts.manyjourneys.com/web/
>>
>> Try out some of the image overlays under the "Monitoring" and "Other
>> Layers" menus - they use WMS.
>>
>> On Mar 2, 12:50 pm, bratliff <[email protected]> wrote:
>> > On Mar 2, 8:29 pm, Josh Rosenthal <[email protected]> wrote:
>> >
>> > > Hi,
>> >
>> > > I was wondering if anyone could point me towards any examples of WMS
>> > > overlays using v3.  As best as I can tell, I can do it as an
>> ImageMapType,
>> > > but I'm confused how I would go from getTileUrl's center coord and
>> zoom to a
>> > > WMS bbox.  Any examples or advice would be most welcome.
>> >
>> > > Thanks,
>> >
>> > > Josh
>> >
>> > It is a bit obsolete
>> >
>> >    http://www.polyarc.us/sparse
>> >
>> > Tile layer overlays were not available at the time it was developed.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Maps JavaScript API v3" group.
>> To post to this group, send email to
>> [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<google-maps-js-api-v3%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to