Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

swap don't work when try switch to back #124

Closed
cioxideru opened this Issue · 3 comments

2 participants

@cioxideru

for example code from core.html
{
desc: 'Swap API (googlev3)',
action: function(){
m.swap('map', 'googlev3');
}
},
{
desc: 'Swap API (yandex)',
action: function(){
m.swap('map', 'yahoo');
}
},

@cioxideru

next code fix it problem, I'm not sure that this was intended
at this method
Mapstraction.prototype.swap = function(element,api) {
next line
if (this.maps[this.api] === undefined || true) {

@gilesc50
Collaborator

Closing as I don't see any of this code still in the release 3 branch.

@gilesc50 gilesc50 closed this
@gilesc50
Collaborator

Ah ok I reproduced the issue. create an openlayers map, swap it to Googlev3, then when you swap it back to openlayers again nothing happens.

@gilesc50 gilesc50 reopened this
@gilesc50 gilesc50 referenced this issue from a commit
giles@earthware.co.uk fix for issue #124. Seems to work ok. 522a1de
@gilesc50 gilesc50 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.