Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
GMAp Extension: Add WMS layers to your map
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Knight  
View profile  
(1 user)  More options Jul 18 2005, 7:17 am
From: "David Knight" <da...@globalcoordinate.com>
Date: Mon, 18 Jul 2005 04:17:16 -0700
Local: Mon, Jul 18 2005 7:17 am
Subject: GMAp Extension: Add WMS layers to your map
I wrote a small javascript file that enables you to add (almost) any
WMS layer to your google map.  The javascript is at
http://globalcoordinate.com/jscript/WMSTiles.js .   For a live example
go to http://globalcoordinate.com/ and click the "LANDSAT" button.

Example code using the JPL Landsat Global Mosaic data server...
////////////////  BEGIN CODE SAMPLE  //////////////////

var mapSpecs = [];
createMapSpecs();
mapSpecs.push(_GOOGLE_MAP_TYPE);
mapSpecs.push(_SATELLITE_TYPE);
wmsSpec =new _WMSMapSpec
("http://wms.jpl.nasa.gov/wms.cgi?request=GetMap&layers=global_mosaic_b...","Landsat");
mapSpecs.push(wmsSpec);
map = new GMap(document.getElementById("map"),mapSpecs);

////////////////  END CODE SAMPLE  //////////////////

The constructor of the _WMSMapSpec object takes two params.

Param 1 is the WMS GetMap url.  The WMSTiles javascript will append the
"bbox", "width" and "height" parameters on to the url.

Param 2 is the button text.

I have only tested this with a couple of WMS servers, but in theory it
should work with almost any. The bbox parameter in the url  will be
written as latitude and longitude so this code will not work with UTM
type projections.

Comment here or email if you have questions.  Have fun!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bFlood  
View profile  
 More options Jul 18 2005, 12:31 pm
From: "bFlood" <bFl...@spatialDataLogic.com>
Date: Mon, 18 Jul 2005 09:31:24 -0700
Local: Mon, Jul 18 2005 12:31 pm
Subject: Re: GMAp Extension: Add WMS layers to your map
nice work David, good WMS integration is key to building on what Google
Maps already has to offer.

I did something similar here, you can download the WMS spec:
http://www.spatialdatalogic.com/cs/blogs/brian_flood/archive/2005/07/...

some other Google Maps hacking also:
http://www.spatialdatalogic.com/cs/blogs/brian_flood/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lokkju  
View profile  
 More options Jul 18 2005, 12:33 pm
From: "Lokkju" <lok...@gmail.com>
Date: Mon, 18 Jul 2005 09:33:26 -0700
Local: Mon, Jul 18 2005 12:33 pm
Subject: Re: GMAp Extension: Add WMS layers to your map
The USGS Integration extension I did (search this group) supported UTM
conversions, so it would not be too hard to integrate UTM functionality
into your code...

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
repalviglator@yahoo.com  
View profile  
 More options Aug 2 2005, 10:34 pm
From: "repalvigla...@yahoo.com" <repalvigla...@yahoo.com>
Date: Tue, 02 Aug 2005 19:34:05 -0700
Local: Tues, Aug 2 2005 10:34 pm
Subject: Re: GMAp Extension: Add WMS layers to your map
I used Brian Flood's code along with some hacks to overlay one WMS
service on top of another using the Google Maps API.

-Kyle Mulka
http://maps.kylemulka.com/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google