Dougsg38p did not actually answer last question because it was about
MapField not
Google Maps.
You can:
a) search forum on MapField or
b) look at the example in JDE 4.7.
Basically, you have to override
paint() method in MapField.
Example in JDE is OK, except it "glues" marker to the center of the screen.
To
glue it to some point
on the map you have to use
convertWorldToField() method
to get Field (i.e. screen) position from the World location.
Something like this:
PHP Code:
private XYPoint screenField = new XYPoint();
protected void paint(Graphics g)
{
g.setDrawingStyle(Graphics.DRAWSTYLE_AAPOLYGONS, true);
super.paint(g);
convertWorldToField(locationWorld, screenField);
g.drawBitmap(screenField.x, screenField.y, CenterPoint.getWidth(), CenterPoint.getHeight(), CenterPoint, 0, 0);
}