0

Gmapsz v3 not displaying gmarkers

asked 2012-11-22 15:45:31 +0800

MonoMamerto gravatar image MonoMamerto
47 1

updated 2012-11-22 15:45:45 +0800

Hi, i don't know why gmapsz 3 stopped showing markers on a map. The following code it's extracted from: http://books.zkoss.org/wiki/ZK_Component_Reference/Diagrams_and_Reports/Gmaps#Example

<window title="Gmaps Demo" border="normal" width="520px">
   <!-- you may wish specify the version of google map api manually for some reason,
       use version="" to do it.
       ex: <gmaps version="3.5" id="mymap" ... ></gmaps> -->
   <gmaps id="mymap" width="500px" height="300px" showSmallCtrl="true">
       <ginfo id="myinfo" open="true">
           <![CDATA[
               Hello, <a href="http://www.zkoss.org">ZK</a>.
           ]]>
       </ginfo>
        
       <gmarker id="mymark" lat="37.4410" lng="-122.1490">
           <![CDATA[
               Hello, <a href="http://www.zkoss.org">ZK</a> on top of Gmarker.
           ]]>
       </gmarker>
        
       <attribute name="onMapClick">
           Gmarker gmarker = event.getGmarker();
           if (gmarker != null) {
               gmarker.setOpen(true);
           }
       </attribute>
   </gmaps>
</window>

This used to work but now it's not showing the marker. I often get this error: ..."setAttr X is null (TypeError)"...
Thanks in advance, Mono.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-11-29 05:17:27 +0800

trexx101 gravatar image trexx101
33

problem already fixed

link publish delete flag offensive edit

answered 2012-11-28 02:31:30 +0800

jeanher gravatar image jeanher
1824 2 6
ZK Team

updated 2012-11-28 02:32:06 +0800

It's related to the new version of google maps, refer to this thread: http://www.zkoss.org/forum/listComment/21159-zk-gmaps-error

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-11-22 15:45:31 +0800

Seen: 148 times

Last updated: Nov 29 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More