2
Vote

Create google map instance at run time problem

description

I'm using the following code to create Google map new instance at run-time but nothing happened
just a grey map screen appeared

GoogleMapForASPNet2 = new GoogleMap();
GoogleMapForASPNet2.ID = "GoogleMapForASPNet2";
GoogleMapForASPNet2.Center = new LatLng(30, 30);
GoogleMarkers1 = new GoogleMarkers();
GoogleMarkers1.ID = "GoogleMarkers1";
GoogleMarkers1.TargetControlID = GoogleMapForASPNet2.ID;

comments

gany__ wrote Jul 15, 2012 at 7:34 AM

This is the same problem that i have - however i am trying to just load hidden then make it visible.

It has something to do with the javascript freaking out.