[OpenLayers-Users] Google Layer in OLayers

mortac8 ashley_c_mort at raytheon.com
Tue Jul 27 08:43:18 EDT 2010


Are you sure that the src URL is a valid license for your server? 
http://code.google.com/apis/maps/signup.html

After that you can use Firebug and break somewhere in your code to ensure
the globals like G_SATELLITE_MAP are shown in your Watch tab (this.)


SiamKC wrote:
> 
> My apologies. By mistake I hit enter and it sent out with incomplete
> details
> 
> In my previous mail, it complains G_SATELLITE_MAP is not an object.
> 
> Could some one suggest me on how to use google satellite or other layers
> in
> Open Layers please.
> 
> Thanks,
> Kalyan
> 
> On Fri, Jul 23, 2010 at 12:30 PM, Kalyan Kamepalli <
> kalyan.kamepalli at gmail.com> wrote:
> 
>> Hello Group,
>>
>> I want to include google satellite layer in OpenLayers along with my
>> other
>> layers. I tried as it said in the examples. I defined a layer like the
>> below
>>
>> var gsat = new OpenLayers.Layer.Google(
>>                 "Google Satellite",
>>                 {type: G_SATELLITE_MAP, numZoomLevels: 22}
>>             );
>>
>> I also included Google API as suggested in example
>>
>> <script src='
>> http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ<http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ>
>> '></script>
>>
>> after both the above lines added to my layers definitions, it complained
>> that G_SATELLITE_MAP
>>
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Google-Layer-in-OLayers-tp5328109p5341985.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list