[OpenMap Users] google map and openmap question

From: ralph yozzo <ryozzo@alum.syracuse.edu>
Date: Thu Mar 09 2006 - 23:36:51 EST

I apologize if this is a crazy question but I want to place points on a
google map manually on the server side because our target browser does not
have javascript.

So I grab the image from google e.g.,
http://maps.google.com/mapdata?latitude_e6=40611075&longitude_e6=-73984219&z
m=10000&w=200&h=200&cc=US&min_priority=2 is an image
I know it's width and height in pixels and the zoom level is 10000

My question is given another point (latitude, longitude) how can I project
it on the map in general.

I'm using
        float scale = zoom*fudgefactor; // not sure what the relationship
is between the google map zoom level and the bbn scale value.
        com.bbn.openmap.LatLonPoint center = new
com.bbn.openmap.LatLonPoint(latx, longx);
        com.bbn.openmap.proj.LLXY llxy = new
com.bbn.openmap.proj.LLXY(center, scale, w, h);

My basic question is what the relationship is between the google map zoom
level and the bbn scale value?

Or is there a better way?

I use forward to get the x, y in pixels to draw one of the markers
                java.awt.Point p = llxy.forward(latitude, longitude);
                graphics2D.drawImage(imagemarker, (int)p.getX(),
(int)p.getY(), null);

Then, I draw the marker.

The problem is the I don't know what to set the scale to.

Any help would be appreciated.

The documentation on google zoom is pretty sparse.

Ralph

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Mar 9 23:40:29 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 09 2006 - 23:40:31 EST