public GoogleMapPanel(int width, int height)
    {
    	setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
        imageWidth=width;
        imageHeight=height;
        MapGetter.setImageSizeH(imageHeight);
        MapGetter.setImageSizeW(imageWidth);
        viewMode[0]="roadmap";
        viewMode[1]="satellite";
        viewMode[2]="hybrid";
        viewMode[3]="terrain";
        buttonViewMode = new JButton(viewMode[0].toUpperCase());
        buttonViewMode.addActionListener(this);
        buttonViewMode.setAlignmentX(RIGHT_ALIGNMENT);
        add(buttonViewMode);
        
        buttonZoomIn = new JButton("Zoom +");
        buttonZoomIn.addActionListener(this);
        add(buttonZoomIn);
        
        buttonZoomOut = new JButton("Zoom -");
        buttonZoomOut.addActionListener(this);
        add(buttonZoomOut);
        
        buttonHelp = new JButton("Pomoc");
        buttonHelp.addActionListener(this);
        add(buttonHelp);
        
        MapGetter.getMapImage(MapGetter.createUrl(0, 0));
        repaint();
    }