Tag Info

Hot answers tagged

1

After seeing underdark's comment, I tried using Ubuntu with QGIS 2.4. At first it didn't work, but after reinstalling openlayers, I was able to load Google Satellite and zoom in. But I couldn't zoom in past 1:2300 on Bing maps. So I did some more searching and found a post on QGIS project wiki - http://hub.qgis.org/issues/11728#change-58357 - that ...


1

I guess your problem is one of Javascrip variable scope. The variable layer_1 is only visible in the init() function, so you cannot access it outside of that function. A solution is to declare it global, that is add to the line var map, layer so this reads var map, layer, layer_1; // and layer_2,... and then use the global variable in the init ...



Only top voted, non community-wiki answers of a minimum length are eligible