Hi all,

I have figured out what went wrong myself :) This is for those who are
currently reading this post for an idea of how to solve a similar
problem:

Ensure that the marker's icon is not on an external URL. The markers I
was using used an icon from C:\MyIcon.png. When this is deployed as a
war file in Firefox and IE, the marker's icon src was null as it could
not point to that URL in web mode. Solution: Ensure that the icon is
in the 'public' folder in your project. Eg. My images are in the
'public/images' folder and hence the icon's url is:
        Icon icon = Icon.newInstance("images/MyIcon.png");

This will be visible in webmode when deployed using a war file.
Hope this resolves your bug as it did mine.
If there are any other fixes, please post it here for others.

Thank you.
Chitra


On Mar 30, 10:40 am, Chitra <[email protected]> wrote:
> Hi All,
>
> I have a google MapWidget that has several marker overlays. When run
> in hosted mode, these markers can be seen. However, once compiled into
> Javascript, the following error is thrown in Firefox:
>
> Error: [Exception... "'com.google.gwt.core.client.JavaScriptException:
> (TypeError): a is null
>  fileName:http://maps.google.com/intl/en_ALL/mapfiles/150c/maps2.api/main.js
>  lineNumber: 532
>  stack: (null,"C:\\myIcon.png",[object Object])@http://maps.google.com/
> intl/en_ALL/mapfiles/150c/maps2.api/main.js:532
> ("C:\\mtIcon.png")@http://maps.google.com/intl/en_ALL/mapfiles/150c/
> maps2.api/main.js:1262
> l2([object Object])@http://localhost:8080/MyProject/
> ACADCA4DA4C0B465E1EA03342F4CF5CC.cache.html:726
> C1([object Object],[object Object])@http://localhost:8080/MyProject/
> ACADCA4DA4C0B465E1EA03342F4CF5CC.cache.html:710
> mx([object Object],[object Object])@http://localhost:8080/MyProject/
> ACADCA4DA4C0B465E1EA03342F4CF5CC.cache.html:154
> px([object Object])@http://localhost:8080/MyProject/
> ACADCA4DA4C0B465E1EA03342F4CF5CC.cache.html:156
> ([object Event])@http://localhost:8080/MyProject/
> ACADCA4DA4C0B465E1EA03342F4CF5CC.cache.html:204
> ' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult:
> "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "<unknown>"
> data: no]
>
> Hence, in both Firefox and IE, I can't seem to see the markers. Does
> anyone have any ideas as to why this is happening?
>
> Thank you very much.Chitra
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
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