On Jun 21, 6:16 am, Ay Gok <[email protected]> wrote: > Hi, > With the code below I was fixing min and max zoom levels of google > map. But now I get javascript runtime error "Microsoft JScript Runtime > Error: Unsupported Google Maps API version: 2". > > What is the new way of it? > > function OnMapCreating(map) { > OpenLayers.Layer.Google = > OpenLayers.Class(OpenLayers.Layer.Google, { > MIN_ZOOM_LEVEL: 5, > MAX_ZOOM_LEVEL: 17 > }); > > }
That is not Google Maps API v2 code (the topic of this group), nor is it Google Maps JavaScript API v3 code (that group is: http://groups.google.com/group/google-maps-js-api-v3) I would suggest contacting the developer of the OpenLayers code, seems like that might have been updated to use v3, but with the information given, it is impossible to tell. One option might be to read and follow the posting guidelines (of both the mapping API groups) and provide a link to your map that exhibits the problem... -- Larry > > thanks.. > > Ayhan -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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-api?hl=en.
