Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Google Map GWT API - Preliminary Release
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
aglaforge  
View profile  
 More options Jun 16 2006, 2:48 pm
From: "aglaforge" <aglafo...@gmail.com>
Date: Fri, 16 Jun 2006 18:48:01 -0000
Local: Fri, Jun 16 2006 2:48 pm
Subject: Google Map GWT API - Preliminary Release
I've implemented all the major classes (excluding the newer Geocoder
stuff) and have moved everything into a module.  Some work still needs
to be done on implementing all events.

Everything is on SourceForge (http://sourceforge.net/projects/gwt/) and
I'm looking for any help I can get on enhancing the implementation,
testing, and doing documentation.   Please e-mail me if you are
interested in joining the project!

To use the API :

1.) Downlod googleMaps.jar from
http://sourceforge.net/project/showfiles.php?group_id=169331

2.) Add googleMaps.jar to your project's classpath

3.) Add the following line into your module:

<inherits name='com.mapitz.gwt.googleMaps.GoogleMaps' />

4.) To the HTML file's HEAD you intend to display a map on add the
google maps java script file along with your key (hopefully this is a
requirement that will go away)

Example:
<script
src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA..."
      type="text/javascript"></script>

5.) Ensure there is a <DIV id="map"> in your code... (Google Maps is a
little funny if you use a dynamically created DIV... which the code can
currently do... but the centering is off... not sure where the bug
lies, but it's not pretty, so to avoid it... do this step)

6.) Work with the API in your code
To get started with the API:

    //Retrieve an existing DIV object from your HTML by name
    Element e = RootPanel.get("map").getElement();

    //Insantiate the GMap2 widget
    GMap2 gmaps = new GMap2(e);

    //If you are brave and don't mind centering issues
    //GMap2 gmaps = new GMap2();

    //Create a center position to center on (some methods do not work
on the map if you are not centered)
    GLatLng pos = GLatLng.create(37.4419, -122.1419);
    gmaps.openInfoWindowHtml(pos, "The center of the world");
    gmaps.setCenter(pos);


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »