Thursday, April 21, 2011

[Google Maps API v2] How to add a Dojo widget in Map Info window

Hi All

I am developing a web app which display google map on which I have
markers on some locations. When I click on those markers, i want a
dojo widget should come in the infoWindow of that marker. I had gone
through the Google apis om how to add content to marker and I could
able to add a simple html content but When I tried adding a dojo
widget as content to info window it did not work as expected.

Here is the code snippet I have tried.

var contentString = '<div id="mainTabContainer"
dojoType="dijit.layout.TabContainer" style="width:1000px;height:
500px">'+
'</div>';

var infowindow = new google.maps.InfoWindow(
{
content: contentString
});

google.maps.event.addListener(indira_marker, 'click', function(event)
{
infowindow.open(map,indira_marker);
});


I have loaded dijit.layout.TabContainer into my app and its working
fine out side. When Its not coming inside the info Window.

How to do this ?

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate