Hi Pavel,

In the Maps API, there is an additional note along with setImage()

Requests the image specified by the url to be set as the foreground image
for this marker. Note that neither the print image nor the shadow image are
adjusted. Therefore this method is primarily intended to implement
highlighting or dimming effects, rather than drastic changes in marker's
appearances. (Since 2.75)

-------

You didn't give the details of any MarkerOptions or Icon settings you used
to construct the marker. One thing I have noted in the Icon API is that if
you override the image for the Icon, you must also provide an ImageMap.
Could that be the problem here?


On Fri, Nov 21, 2008 at 1:04 PM, Pavel Byles <[EMAIL PROTECTED]> wrote:

> *Code*
> String markerUrl = "http://maps.google.com/mapfiles/ms/micons/blue-dot.png
> ";
> Marker m = new Marker(..., ...);
> m.setImage(markerUrl));  // Error occurs here
>
> *Error*
> [ERROR] Uncaught exception escaped
> com.google.gwt.core.client.JavaScriptException: (TypeError): a has no
> properties
>  fileName:
> http://maps.google.com/intl/en_ALL/mapfiles/137c/maps2.api/main.js
>  lineNumber: 452
>  stack: (null,"http://maps.google.com/mapfiles/ms/micons/blue-dot.png";)@
> http://maps.google.com/intl/en_ALL/mapfiles/137c/maps2.api/main.js:452
> ("http://maps.google.com/mapfiles/ms/micons/blue-dot.png";)@
> http://maps.google.com/intl/en_ALL/mapfiles/137c/maps2.api/main.js:1148
> ([object gwt_nativewrapper_class],"
> http://maps.google.com/mapfiles/ms/micons/blue-dot.png";)@transient source
> for com.google.gwt.maps.client.impl.__MarkerImplImpl:48
> private void
> com.google.gwt.http.client.Request.fireOnResponseReceived(com.google.gwt.http.client.RequestCallback)([object
> gwt_nativewrapper_class])@:0
>
> ()@jar:file:/home/wikid/Code/GWT15/gwt-user.jar!/com/google/gwt/http/client/XMLHTTPRequest.java:253
> @:0
>
>     at com.google.gwt.maps.client.impl.__MarkerImplImpl.setImage(Native
> Method)
>     at com.google.gwt.maps.client.overlay.Marker.setImage(Marker.java:677)
>     at com.pavco.client.ui.CountryMarker.<init>(CountryMarker.java:33)
>     at
> com.pavco.client.ui.CountryChooser$1.onResponseReceived(CountryChooser.java:104)
>     at
> com.google.gwt.http.client.Request.fireOnResponseReceivedImpl(Request.java:254)
>     at
> com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch(Request.java:226)
>     at
> com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:217)
>
> Can anyone see what I am doing wrong?
>
> --
> -Pav
>
> >
>


-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to