Opened 11 years ago

Closed 10 years ago

#14187 closed defect (invalid)

Google Map API is somehow broken

Reported by: Ming Zhe Huang Owned by: Rawld Gill
Priority: high Milestone: 1.8
Component: Loader Version: 1.7.0
Keywords: Cc: zhangyp
Blocked By: Blocking:


Weird problem, and it seems that dojo module loader might be the most suspicious component. Please try the attached test case.

  • If Google map API is directly invoked, you'll find that actually the map is rendered but the API cannot pull in subsequent images.
  • If we wrap Google map API in a class declared by dojo, then everything works fine. [Note] Try to switch the logic in renderGoogleMap() function.

It could be due to scope problem. Just my guess, because the two ways of rendering Google Map API share almost the same execution path.

Attachments (1) (1.4 KB) - added by Ming Zhe Huang 11 years ago.
test case

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by Ming Zhe Huang

Attachment: added

test case

comment:1 Changed 11 years ago by Rawld Gill

Status: newassigned

comment:2 Changed 11 years ago by Rawld Gill

Milestone: tbd1.8

comment:3 Changed 10 years ago by Rawld Gill

Resolution: invalid
Status: assignedclosed

You spelled mapTypeId wrong (your code has it as mapType) in mapOptions in renderGoogleMap(). Fixing this, everything works.

Note: See TracTickets for help on using tickets.