2010/11/29: New Release

68 views
Skip to first unread message

Luke (Google Employee)

unread,
Nov 29, 2010, 12:29:37 AM11/29/10
to Google Maps JavaScript API v3
Hey everyone!

We've recently pushed out a new version of the API. See the list of
changes below:
http://code.google.com/p/gmaps-api-issues/wiki/JavascriptMapsAPIv3Changelog

3.3 November 28th, 2010

Resolved issues:
maptypeid_changed no longer fires twice (Issue 2449)
The "size" property of a MarkerImage object is now accessible
(Issue 2465)
Marker shape references the icon rather than the sprite (Issue
2629)
Panning the map on marker drag has been improved for smaller maps
(Issue 2868)

Noticeable changes:
Maps can now be printed without enabling printing of background
images
Fixed bug where draggable direction markers were draggable when
'draggable' was set to false

Please test and provide feedback.

Thanks

- Luke

Gary Little

unread,
Nov 29, 2010, 2:11:10 AM11/29/10
to Google Maps JavaScript API v3
I noticed a couple of days ago that markers on maps now print w/o
enabling printing of background. Great news! I'd love to know how this
was accomplished -- some advanced CSS work I imagine.

Gary

On Nov 28, 9:29 pm, "Luke (Google Employee)" <lu...@google.com> wrote:
> Hey everyone!
>
> We've recently pushed out a new version of the API.  See the list of
> changes below:http://code.google.com/p/gmaps-api-issues/wiki/JavascriptMapsAPIv3Cha...

sgiddings

unread,
Nov 29, 2010, 3:59:04 AM11/29/10
to Google Maps JavaScript API v3
Hi Luke,

You state that the issue 2465 relates to accessing the size property
of a MarkerImage object, I think you referenced the wrong issue (at
least when clicking on the link, it does not display this).

Simon

sgiddings

unread,
Nov 29, 2010, 4:02:33 AM11/29/10
to Google Maps JavaScript API v3
Hi Luke,

You state that the issue 2465 relates to accessing the size property
of a MarkerImage object, I think you referenced the wrong issue (at
least when clicking on the link, it does not display this).

Simon

On Nov 29, 8:11 am, Gary Little <g...@luxcentral.com> wrote:

sgiddings

unread,
Nov 29, 2010, 4:09:14 AM11/29/10
to Google Maps JavaScript API v3
Hi Luke,

Further comment on accessing the size property of the MarkerImage
object.
This is of use, obviously, only when a MarkerImage object has been
created. If a simple string, indicating the image to use, has been
provided to the marker, then there is no way to "officially" obtain
the size.
This is where my enhancement request comes in for officialising the
pixelBounds object -
- http://code.google.com/p/gmaps-api-issues/issues/detail?id=2860

This request will provide the much needed dimensions at all times.
Can this be boosted up the "to-do" list ?

Simon

Susannah (Google Employee)

unread,
Nov 29, 2010, 6:25:59 AM11/29/10
to Google Maps JavaScript API v3
Hi Simon,

If you create a MarkerImage object instead of using the string, you
should be able to access the size now.

var markerImage = new google.maps.MarkerImage("http://code.google.com/
apis/maps/documentation/javascript/examples/images/beachflag.png");
var marker = new google.maps.Marker({map: map, position:
map.getCenter(), icon: markerImage});
google.maps.event.addListener(marker, 'click', function() {
alert(marker.getIcon().size);
});

Will that work for you?

Thanks,
Susannah

On Nov 29, 8:09 pm, sgiddings <mr.s.giddi...@gmail.com> wrote:
> Hi Luke,
>
> Further comment on accessing the size property of the MarkerImage
> object.
> This is of use, obviously, only when a MarkerImage object has been
> created. If a simple string, indicating the image to use, has been
> provided to the marker, then there is no way to "officially" obtain
> the size.
> This is where my enhancement request comes in for officialising the
> pixelBounds object -
> -http://code.google.com/p/gmaps-api-issues/issues/detail?id=2860

sgiddings

unread,
Nov 29, 2010, 6:57:15 AM11/29/10
to Google Maps JavaScript API v3
Hi Susannah,

Totally agree with you - however this is not how many sites have been
created, since the possibility of assigning a string instead of the
MarkerImage object has been there for a while now.
Hence my proposition for the pixelBounds object.

On Nov 29, 12:25 pm, "Susannah (Google Employee)"

jeevan

unread,
Nov 29, 2010, 9:00:46 AM11/29/10
to Google Maps JavaScript API v3
Hi,

Google Marker image is not loading from yesterday (28-11-2010).

I am using the marker in the below way?

var markerIcon = new google.maps.MarkerImage("test.png", new
google.maps.Size(40, 45));

or

var markerIcon = new google.maps.MarkerImage("test.png");

var newLocation = new google.maps.LatLng(lat, lng);

var marker = new google.maps.Marker({
icon: markerIcon,
map: map,
position: newLocation,
});



Previously the above code is working properly (the image is loading).
Due to new changes as a result the image was not loading ?

What changes required in order to make the above code to load the
image.

Any help is appreciated?

Thanks in advance !!
Jeevan.





I am getting this
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/c28a3ac05186b13

Luke Mahé

unread,
Nov 29, 2010, 4:59:42 PM11/29/10
to google-map...@googlegroups.com
Hi Jeevan,

Do you have a link to your site that we can look at?

Thanks

Luke


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.


Joseph Elfelt

unread,
Nov 29, 2010, 10:30:03 PM11/29/10
to Google Maps JavaScript API v3
Hi Luke,

Thanks for the info on the new release. Alas, I cannot print from my
app.
I'm using FF 3.6.6, XP Pro SP3.

My app is an enhanced Google Map viewer (OK - no laughing)
Here's a sample map:
http://www.mappingsupport.com/p/gmap4.php?ll=44.461721,-110.832396&z=14

In FF 'print preview' I get a mostly blank screen.

I did try some of the sample/demo maps from the API reference page and
they display in 'print preview' just fine.

It is certainly possible that I butchered my CSS. In fact, I am
presently redoing my CSS as part of the process of adding a search
feature to my app.

Any suggestions for what I might try in order to get print working?

jeevan reddy

unread,
Nov 30, 2010, 1:27:36 AM11/30/10
to google-map...@googlegroups.com
Hi Luke,

Thanks for your reply.

It 's not a web based app. It's a mobile application built on palm
webos. I don't have a link to provide.

I tried the same in localhost by integrating maps in a sample HTML
file. It's worked properly.

It's not working properly in the palm webos application.

Finally 1 more update on this. After sometime, when the map is dragged
the image appears. I can't say what is the exact time after which it
appears.

I am seeing this peculiar behaviour after the recent google maps v3
api updates (on 28-11).

The downloading of the image seems to be problem with new
google.maps.MarkerImage with latest version changes

From the API reference: The display size of the image. This property
may not be defined until the image has loaded.

Please correct me if i am wrong?

Thanks,
Jeevan

Cliff Smoke

unread,
Nov 30, 2010, 2:19:44 PM11/30/10
to google-map...@googlegroups.com
Hi Luke,
 
could you provide some information why, in case of using the google reverse geocode service, the sublocality isn't showing up anymore, where it was showing up before
 
Before it showed Locality: Bocholt, Sublocality: Kaulille.
Now it's only showing Locality: Bocholt
 
Thx!
Reply all
Reply to author
Forward
0 new messages