Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google layer loads always the default (streets) layer #18

Closed
kyiannis opened this issue Jun 26, 2012 · 1 comment
Closed

Google layer loads always the default (streets) layer #18

kyiannis opened this issue Jun 26, 2012 · 1 comment

Comments

@kyiannis
Copy link

Hi,
Whenever i try to load a google v3 base layer other than the default i always get the default.
e.g. the following code loads google streets layer (taken from the demo):
$(document).ready(function() {
$('#map').mapQuery({
layers:[{ type:'google', view:'terrain' }] });
});
When i modified the return of the function
google: function(options) //Line 1056 of jquery.mapquery.core.js
to return the layer label together with the layer type, it works fine:
return {
layer: new OpenLayers.Layer.Google(
o.label, //added this line
{type:view}),
options: o
};

Please review,
Thanks
yiannis

@stvno
Copy link
Member

stvno commented Aug 3, 2012

Thanks for the issue and the fix. I've committed them on #ca04e47d

@stvno stvno closed this as completed Aug 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants