07.11.2012, 22:08
Hallo,
wenn ich eine Tour plane schaue ich mir schon mal ganz gerne Wikipedia Artikel oder Panoramio Bilder in der Nähe an. Ein nettes und relativ einfach einzufügendes "feature" z.B. unter dem Menüpunkt "Ansicht". Nachfolgend schon einmal der JScode (als switch).
MfG, Reinhard
function switchWiki(){
if (wiki == null){
wiki = new GLayer("org.wikipedia.de");
map.addOverlay(wiki);
} else {
map.removeOverlay(wiki);
wiki = null;
}
}
function switchPanoramio(){
if (pano == null){
pano = new GLayer("com.panoramio.all");
map.addOverlay(pano);
} else {
map.removeOverlay(pano);
pano = null;
}
}
wenn ich eine Tour plane schaue ich mir schon mal ganz gerne Wikipedia Artikel oder Panoramio Bilder in der Nähe an. Ein nettes und relativ einfach einzufügendes "feature" z.B. unter dem Menüpunkt "Ansicht". Nachfolgend schon einmal der JScode (als switch).
MfG, Reinhard
function switchWiki(){
if (wiki == null){
wiki = new GLayer("org.wikipedia.de");
map.addOverlay(wiki);
} else {
map.removeOverlay(wiki);
wiki = null;
}
}
function switchPanoramio(){
if (pano == null){
pano = new GLayer("com.panoramio.all");
map.addOverlay(pano);
} else {
map.removeOverlay(pano);
pano = null;
}
}