📄 testoverlay.java
字号:
// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov Date: 2008-6-16 11:24:37
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: TestOverlay.java
package com.eightmotions.test;
import com.eightmotions.map.MapCanvas;
import com.eightmotions.map.MapCustomOverlay;
import com.eightmotions.util.UtilMidp;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
public class TestOverlay extends MIDlet
{
class NewOverlay
implements MapCustomOverlay
{
public String getTileURL(int x, int y, int z, int sizeSq, boolean isSat)
{
int ya = 1 << 17 - z;
if(y < 0 || ya - 1 < y)
return "http://www.google.com/mapfiles/transparent.gif";
else
return "http://tile.openstreetmap.org/" + (17 - z) + "/" + x + "/" + y + ".png";
}
public boolean isTransparent()
{
return false;
}
public String getName()
{
return "TestOverlay";
}
NewOverlay()
{
}
}
public TestOverlay()
{
}
public void startApp()
{
UtilMidp.checkMIDP(this);
m_map = new MapCanvas();
m_map.setModeProxy(true);
m_map.setOverlay(new NewOverlay());
Display d = Display.getDisplay(this);
d.setCurrent(m_map);
}
public void pauseApp()
{
}
public void destroyApp(boolean flag)
{
}
MapCanvas m_map;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -