komasoftware / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

Upgrade to Maps v3 #381

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to see support for Maps v3.

Original issue reported on code.google.com by dusan.ma...@gmail.com on 4 Jun 2010 at 12:23

GoogleCodeExporter commented 9 years ago
Here is my *Alpha* GWT Maps V3 API source and demo. 
- Nothing is frozen yet.
- Things will change.
- Its not polished yet. 
- I have much work still awaits, but currently its producing good results. 

http://code.google.com/p/gwt-maps-api/source/browse/#svn%2Ftrunk%2FApis_Google_M
aps%2Fsrc%2Fcom%2Fgoogle%2Fgwt%2Fmaps%2Fclient - main source branch

http://gonevertical-apis.appspot.com - demo

On my coding horizon:
- services classes
- demo I can apply selenium testing to 
- more... :)

I've decided just to go ahead and move it into the repository sooner than later 
even though it's not as far as I'd like. :)

Original comment by branflak...@gmail.com on 9 Jan 2012 at 3:03

GoogleCodeExporter commented 9 years ago
Hey! That looks great! Awesome job. I didn't look at the sources yet, but, 
could you publish some javadoc to give us an idea what the API looks like?

Original comment by dusan.ma...@gmail.com on 9 Jan 2012 at 7:38

GoogleCodeExporter commented 9 years ago
We've worked with the Maps team to create an updated GWT bindings API for
Maps v3.  I've updated a pre-release now that you can check out at:

http://code.google.com/p/gwt-google-apis/downloads/detail?name=gwt-maps-3.8.0-pr
e1.zip

This API is automatically generated from metadata coming of the JS API, so some
of the conventions might be a little odd to Java programmers. For the casually 
curious, you can peruse the javadoc:

http://gwt-google-apis.googlecode.com/svntrunk/javadoc/maps/3.8/index.html

Original comment by zundel@google.com on 30 Mar 2012 at 8:22

GoogleCodeExporter commented 9 years ago
Thanks guys!

Original comment by z...@comerge.net on 30 Mar 2012 at 8:27

GoogleCodeExporter commented 9 years ago
Why on earth is Google not actively developing this? Their flagship API still 
isn't supported by their flagship toolkit. Crazy. I'm glad that at least 
something was released, albeit via obscure forum post.

Original comment by tra...@traviswebb.com on 6 Apr 2012 at 10:46

GoogleCodeExporter commented 9 years ago
I totally agree with you, but I've asked Google this very questions and the 
response was paraphrased..."Adwords is our flagship product".

Original comment by ad...@dualsportmaps.com on 6 Apr 2012 at 11:07

GoogleCodeExporter commented 9 years ago
So, is a final 3.8.0 api ever going to be released?

Original comment by sys...@gmail.com on 30 May 2012 at 9:22

GoogleCodeExporter commented 9 years ago
I have just tried to start running the samples referenced in Comment 53, 
following the instructions in the README.txt and have the following issue:

com.google.maps.gwt.samples.server.Server

has imports:

import com.google.gse.GoogleServletEngine;
import com.google.gwt.gserver.GwtResourceServlet;
import com.google.net.base.IpScanners;

that are not resolved.

I've searched for these classes and can't seem to find them anywhere.

Any indication as to where to find these would be appreciated.

Thanks!

Original comment by pstron...@gmail.com on 12 Jun 2012 at 5:50

GoogleCodeExporter commented 9 years ago
I ran into a pretty significant bud with the Pre-Release bindings. You can not 
attache the panel containing the map to another panel. I asked this question on 
stack overflow, but got no response.

http://stackoverflow.com/questions/12489880/gwt-google-apis-gwt-map-3-8-0-pre-th
rows-javascriptexception-map-is-not-define

I switched to branflak's API which seems to work well.

http://gonevertical-apis.appspot.com/

Original comment by rtr...@gmail.com on 2 Oct 2012 at 9:24

GoogleCodeExporter commented 9 years ago
I've been waiting for the past 2 years for this. The official v2 api is about 
to be deprecated in about 6 month and still no final release and documentation 
for v3.

A bit annoying to pay a license for google maps, and then having to use a 3rd 
party API to actually make something out of it. 

Original comment by sys...@gmail.com on 3 Oct 2012 at 12:24

GoogleCodeExporter commented 9 years ago
Stepping back on this one, GWT seems to be going nowhere. It's not really used 
by Google itself, you can't even get it to from 
https://developers.google.com/products/

Original comment by dusan.ma...@gmail.com on 3 Oct 2012 at 12:27

GoogleCodeExporter commented 9 years ago
The maps, completely right. But on the future of GWT, not really true if you 
watch this : http://www.youtube.com/watch?v=VOf27ez_Hvg
Moreover, Google Adwords - the flagship product - is written in GWT, amongst 
others..

Original comment by k...@koma.be on 3 Oct 2012 at 12:34

GoogleCodeExporter commented 9 years ago
They use GWT for adwords, so it is their main revenue generating toolchain. The 
issue isn't with GWT, its that Google don't use it for maps so they don't see 
the value in continuing to create GWT APIs for their other products. Really, 
its too bad...

Original comment by ad...@dualsportmaps.com on 3 Oct 2012 at 12:35

GoogleCodeExporter commented 9 years ago
Google Flights <http://www.google.com/flights/> is built with GWT *and* makes 
use of Maps so please stop saying they don't use GWT with Maps.
They seem to be using JSNI (at least they don't use AjaxLoader from GWT Google 
APIs, because their callback is called maps_apiv3_load_callback, not 
__gwt_AjaxLoader_onLoad); either that or they rolled their own API (or more 
probably they use the same base as "3.8.0-pre1", but with a hand-rolled or 
customized AjaxLoader).

Original comment by t.broyer on 3 Oct 2012 at 1:54

GoogleCodeExporter commented 9 years ago
I meant maps as in maps.google.com. Which as far as I can tell is not GWT.

Original comment by ad...@dualsportmaps.com on 3 Oct 2012 at 2:00

GoogleCodeExporter commented 9 years ago
I want to develop a google earth app with GWT. I have seen the gwt-earth-3 
wrapper by Nick Kerr. 
But I am confused right now: If this is "The Official Google API Libraries for 
Google Web Toolkit" why doesn't it have a Google Earth wrapper? Is the 
gwt-earth-3 wrapper by Nick somehow connected to the official libraries?

Original comment by asim...@gmail.com on 28 Oct 2012 at 9:19

GoogleCodeExporter commented 9 years ago
Hi,
We just received an official mail from google, saying that the v2 API is about 
to be decommissioned. In other words: expect it to stop working soon.

From the email:

"The Google Maps Javascript API V2 was deprecated on May 19, 2010 and will 
continue to work until May 19, 2013. After that date, we will no longer offer 
support for this API and will begin the decommissioning process."

In light of this fact, my personal opinion is that failure to provide a stable 
GWT wrapper until now is gross negligence.

Tomer

Original comment by tom...@gmail.com on 29 Nov 2012 at 8:41

GoogleCodeExporter commented 9 years ago
Tomer..... could not agree more with you. 
Got the same email, and I am a bit lost as to what to do right now.

Original comment by sys...@gmail.com on 29 Nov 2012 at 12:14

GoogleCodeExporter commented 9 years ago
Hi,

Have used http://code.google.com/p/gwt-maps3/ , provides som base
functionality.

Original comment by pether.s...@gmail.com on 29 Nov 2012 at 12:26

GoogleCodeExporter commented 9 years ago
Hi Pether

Will add to my list of alternatives. Still, because I actually pay for a 
license, I would much rather using the official GWT wrapper. If there was one

Original comment by sys...@gmail.com on 29 Nov 2012 at 12:49

GoogleCodeExporter commented 9 years ago
I can recommend these wrappers for gwt maps v3:

https://github.com/branflake2267/GWT-Maps-V3-Api

They are not official, but I've been using them for production for a while now 
without issues.

Original comment by sarkhee on 29 Nov 2012 at 12:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
There is an official binding (see comment 53), why don't you use this one?

it's quite outdated (still maps 3.8) but it seems to (still) work: 
http://code.google.com/p/gwt-google-apis/downloads/detail?name=gwt-maps-3.8.0-pr
e1.zip

Original comment by googelyb...@gmail.com on 29 Nov 2012 at 12:54

GoogleCodeExporter commented 9 years ago
Could you point me to the API javadoc for this? All googling gets me is the 
link below
and the API for 1.1.0/1.0.4

Original comment by treethin...@gmail.com on 1 Dec 2012 at 10:11

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The jar linked above also contains the source and hence Javadoc will be 
displayed in your IDE.

I wrote up an example of using this pre-release with HTML5 geolocation here: 

http://blog.vercer.com/2012/12/google-maps-v3-with-gwt-example.html

Original comment by jdpatterson on 16 Dec 2012 at 8:04

GoogleCodeExporter commented 9 years ago
Hi All,

I am using the very nice GWT V3 API and when I run the sample apps I see all of 
the road and city labels for most countries. But when running in my own 
application (both in development mode and deployed to GAE) some countries do 
not have labels, for instance Ireland and Italy. I added an API key (although 
the sample app does not use one) and that did not help. Any ideas?

Thanks
Mark 

Original comment by thinian...@gmail.com on 29 Dec 2012 at 12:01

GoogleCodeExporter commented 9 years ago
It's a pity! Nothing is working for me when using this pre release of 3.8.0, I 
just have a blank page, with no error messages... and no map displayed.

Google guys working on GWT MAPS API have to do better than that!

Original comment by dg.sicon...@gmail.com on 7 Mar 2013 at 2:05

GoogleCodeExporter commented 9 years ago
For the gwt-maps Java API and Javascript V2 API decommissioning date (so far 
May 19), I would like to know if May 19 is a drop dead date, or if there is any 
possibility of postponement - just like the postponement Google did for the 
Geocoding V2 change by six months? The Geocoding postponement was announced 
literally at the last minute. It will really help if we (the licensed users) 
are made aware of any such move beforehand. In our case, we have the coding 
completed and a firm date will help in prioritizing the production deployment, 
among the many other competing priorities.

Original comment by sudd.gh...@gmail.com on 2 Apr 2013 at 3:34

GoogleCodeExporter commented 9 years ago
Deprecation deadline for Google Maps API v2 has been extended to Nov. 19, 2013. 
 After this date, apps requesting v2 "will be served a special, wrapped version 
of the v3 API instead."  More here - 
https://developers.google.com/maps/documentation/javascript/v2/

Original comment by sjbarb...@gmail.com on 1 May 2013 at 2:59

GoogleCodeExporter commented 9 years ago
Google's official pre-release (gwt-maps-3.8.0-pre1.zip) does not seem to 
include class MarkerCluster, which we use (with GWT map API v2 wrapper) in our 
application to show clustered markers (Note: our map would contain up to 20k 
markers, scalability is a major requirement) We currently use MarkerCluster 
provided in gwt-maps-utility-1.0.zip (from 
http://code.google.com/p/gwt-maps-utility/downloads/list). I am looking for GWT 
V3 map API wrapper with marker cluster capabilities.

Also, I would like to know what the exact definition of a "simple map" is in 
the following Google note. Specifically, whether a "simple map" includes 
MarkerCluster, street views, StreetViewOverlay, drawing polygons on map and 
etc, which are currently being used in our application):

Google note (https://developers.google.com/maps/documentation/javascript/v2/):
"Note: The Google Maps JavaScript API Version 2 was officially deprecated on 
May 19, 2010. The original deprecation period has been extended from May 19, 
2013 until November 19, 2013. As of this date, all applications requesting v2 
will be served a special, wrapped version of the v3 API instead. We expect this 
wrapped version of the API will work for most simple maps, but we strongly 
encourage you to migrate your code to version 3 of the Maps JavaScript API 
before this date."

Original comment by s...@belairnetworks.com on 20 Jun 2013 at 3:04

GoogleCodeExporter commented 9 years ago
@81 (belairnetworks.com)

Brandon's binding at https://github.com/branflake2267/GWT-Maps-V3-Api includes 
a MarkerCluster implementation.

It (currently) require you to use that binding rather than the Google one, but 
I recommend that anyway.

Original comment by tver...@gmail.com on 21 Jun 2013 at 6:38

GoogleCodeExporter commented 9 years ago
I tried Brandon's binding at https://github.com/branflake2267/GWT-Maps-V3-Api. 
The GWT maps v3 api seems to work for our app. However I could NOT get 
MarkerCluster to work and got the following error while trying to use it:

com.google.gwt.core.client.JavaScriptException: (TypeError): 
$wnd.MarkerClusterer is not a constructor

Also, I couldn't find any example for MarkerCluster in Brandon's GWT maps v3 
binding.

Anyone knows  Brandon's 
com.google.gwt.maps.utility.markerclustererplus.client.MarkerCluster works or 
not and how to make it work?

BTW, for GWT maps v2 utility you need to add the following piece of code in 
onModuleLoad() to make the MarkerCluster to work:

if (!GoogleMapsUtility.isLoaded(DefaultPackage.MARKER_CLUSTERER)) 
        {
            GoogleMapsUtility.loadUtilityApi(new Runnable() 
            {
                public void run() {}
            }, DefaultPackage.MARKER_CLUSTERER);
        }
Is there an equivalent mechanism for GWT v3 map utility? 

Thanks in advance.

Original comment by s...@belairnetworks.com on 23 Aug 2013 at 8:47

GoogleCodeExporter commented 9 years ago
The issue reported in my previous (Aug 23) comment has been resolved. Here are 
what I did:
1) download markerclusterer_compiled.js from 
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/s
rc/  and put it directory e.g js/
2) add the following in your <gwt proj>.gwt.xml:
<inherits 
name='com.google.gwt.maps.utility.markerclustererplus.MarkerClustererPlus' />
3) add the following in your <gwt proj>.html file:
<script type="text/javascript" src="js/markerclusterer_compiled.js"></script>

Original comment by s...@belairnetworks.com on 30 Aug 2013 at 6:08