Revision history [back]

click to hide/show revision 1
initial version

asked 2014-09-17 15:05:58 +0800

Stoichkoff gravatar image Stoichkoff

GMaps Tooltip (popup) problem.

Hi all!

I have to display tooltip (popup) on every Gmarker on my map, when you click on the marker.I want to add markers to a Gmaps map. And I want them to have multiline information on their tooltip, but whatever I try to display it, it throws me null pointer exception at: window.appendChild(popup); Any ideas why I can't display it?

All classes used are from org.zkoss.zul package.

Popup popup = new Popup(); 
window.appendChild(popup); 
Vlayout vlayout = new Vlayout();
Label labelLine = new Label("ID: " + ccp.getParkPlace().getId()); 
vlayout.appendChild(labelLine); 
popup.appendChild(vlayout); 
gM.setTooltip(popup);

ZK Version used: 6.0.5

GMaps Tooltip (popup) problem.

Hi all!

I have to display tooltip (popup) on every Gmarker on my map, when you click on the marker.I want to add markers to a Gmaps map. And I want them to have multiline information on their tooltip, but whatever I try to display it, it throws me null pointer exception at: window.appendChild(popup); Any ideas why I can't display it?

All classes used are from org.zkoss.zul package.

Popup popup = new Popup(); 
window.appendChild(popup); 
Vlayout vlayout = new Vlayout();
Label labelLine = new Label("ID: " + ccp.getParkPlace().getId()); 
vlayout.appendChild(labelLine); 
popup.appendChild(vlayout); 
gM.setTooltip(popup);

ZK Version used: 6.0.5

Viewmodel :

@VariableResolver(DelegatingVariableResolver.class)
public class MyViewModelVM {

    @Wire("#win")
    private Window window;

zul :

<window id="win" title="Gmaps Demo" border="normal" width="100%" height="100%"
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More