I apologize, my script <script src="http://maps.google.com/maps? file=api&v=2&sensor=false& type="text/javascript"></ script>
Should have been <script src="http://maps.google.com/maps? file=api&v=3&sensor=false& type="text/javascript"></ script> On Aug 24, 9:53 am, elshae <[email protected]> wrote: > Hello all, > > I am new to GIS and spatial data technology. For the last week I have > been trying to figure what is the appropriate/recommended way to add a > Google Map layer to my Geoserver projects. I saw a screen shot on one > site of some sort plug-in, but have yet to find any info on that. I > have also seenhttp://geowebcache.org/docs/current/services/gmaps.html > but I yet to know where do I add this JavaScript snippet to implement > it. So far the only solution I have come up with is to create an HTML > document and place it in the www directory of my Geoserver with the > following snippets: > > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <script src='http://dev.virtualearth.net/mapcontrol/ > mapcontrol.ashx?v=6.2&mkt=en-us'></script> > <script src="http://maps.google.com/maps? > file=api&v=2&sensor=false& type="text/javascript"></ > script> > > ...... > > // create Google layer > var gsat = new OpenLayers.Layer.Google( > "Google Satellite", > {type: G_SATELLITE_MAP, sphericalMercator: true} > ); > > .... > > map.addLayers([gsat, veaer, yahoosat, wms]); > > ..... > > But is the process really this manual? In Quantum GIS there's an easy > out-of-the-box plug-in that I click on and a Google Layer is generated > for my spatial data. My other question is, why is the API key > needed? I didn't use it in this case and I have read in articles that > it isn't needed for the v3 API. Does this key only apply to some of > the Google MAp API's and not others? > > I apologize in advance if I am asking the obvious :) > > Cheers, > > elshae -- 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.
