Where do you load the Google Maps API in a GWT project? -


मेरी प्रोजेक्ट.gwt.xml फ़ाइल में मेरे पास

  & lt; script src = " Http://maps.google.com/maps?gwt=1&file=api&v=2&sensor=false;key=MYKEY "/ & gt;  

लेकिन, जब मैं अपना पेज लोड करता हूं, तो मुझे आने के लिए Google मानचित्र गैजेट मिल जाता है, लेकिन कोई नक्शा नहीं है और कोई त्रुटि संदेश "आपका पृष्ठ Google मानचित्र एपीआई गुम है।" क्या मुझे एपीआई लोड करने की कोई दूसरी जगह है?

ऐसा लगता है कि मुझे स्वयं को काम करने के लिए मिला है मैंने अपने project.html फ़ाइल में जोड़ा:

  & lt; script src = "http://maps.google.com/maps?file=api&v=2&key=MYKEY" प्रकार = "text / javascript" & gt; & lt; / स्क्रिप्ट & gt;  

और यह काम करना शुरू कर दिया शायद समस्या को हल करने का सबसे अच्छा तरीका नहीं है, लेकिन यह काम किया!


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -