简体   繁体   中英

Overlay panel to Maps V3

In google Maps V3, I need to overlay a panel instead of Marker. I did this in V2 by just using addControlWidget() method. Here is the code along with css. Please help me in implementing the same in V3.

ContentPanel panel = new ContentPanel();
     FlexTable fTable = new FlexTable();
     fTable.setWidget(0, 1, new HTML("TEST1"));
     fTable.setWidget(1, 1, new HTML("TEST2"));
     panel.add(fTable);
     panel.setStyleName("cssstyle");
     MapWidget map = new MapWidget();
      map.addControlWidget(panel);

CSS Code :

.cssstyle {
         z-index: 1;
         float: right;
         position: absolute;}

Trying to overlay custom widget or panel at the top of map (ie, like showing legends in charts)..

Using CustomControls I can able to add (overlay) a panel in GWT Maps V3. Here is the code...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM