Closed GoogleCodeExporter closed 9 years ago
The attached patch offers a solution using a static method Maps.isInstalled().
There
are serveral other issues that are intertwined so they are all in the same
patch.
- Adds a new "Maps.java" utility class that contains this static method.
- LatLng() and MapWidget() check the Maps.isInstalled() and throw an exception if
it returns false.
- HelloMaps explicitly checks isInstalled() and throws up an alert dialog.
- The default center of the map is now LatLng(0,0) and zoom level 1 (issue 116).
This helps a lot with the 'uninitialized' issue because previously a default
LatLng
was created in a static initializer. The default is now gone from the API.
- SimpleDemo.java now creates a map with the default MapWidget constructor.
- Basic unit tests were added for Maps.isInstalled and all MapWidget constructors
Original comment by galgwt.reviews@gmail.com
on 3 Jun 2008 at 4:04
Attachments:
Original comment by galgwt.reviews@gmail.com
on 3 Jun 2008 at 4:07
Committed in r305,306
Original comment by galgwt.reviews@gmail.com
on 4 Jun 2008 at 8:19
Original comment by galgwt.reviews@gmail.com
on 13 Oct 2008 at 8:54
Original comment by galgwt.reviews@gmail.com
on 11 Dec 2008 at 3:08
Original issue reported on code.google.com by
galgwt.reviews@gmail.com
on 7 Apr 2008 at 12:06