Andrew,
Unfortunately I dont have any link and am doing in my local PC.
I have proivded the below lines of code for your review.
*Javascript code to bind the API with div tag :*
function load()
{
if (GBrowserIsCompatible())
{
var map = new GMap2(document.getElementById("map"));
var point1=new GLatLng(37.4419, -122.1419);
map.setCenter(point1, 13);
var marker= new GMarker(point1,{title: "Test", icon:
getBuildingIcon("userMarker.gif"), draggable:true });
map.addOverlay(marker);
var normalMap = new GMapTypeControl();
map.addControl(normalMap);
var overViewMapControl = new GOverviewMapControl();
map.addControl(overViewMapControl);
var largeMap = new GLargeMapControl();
map.addControl(largeMap);
GEvent.addListener(marker, "click", function()
{
infoTabs=[new GInfoWindowTab("Remarks", "sdjkf sjdhfsdkjfhsdkfjsd" )];
marker.openInfoWindowTabsHtml(infoTabs);
});
}
}
*I have used the below code to print the map:*
function Clickheretoprint()
{
var
disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,";
disp_setting+="scrollbars=yes,width=650, height=600, left=100, top=25";
var content_vlue = document.getElementById("map").innerHTML;
var docprint=window.open("","",disp_setting);
docprint.document.open();
docprint.document.write('<html><head><title>Inel Power System</title>');
docprint.document.write('</head><body
onLoad="window.print();window.close()"><center>');
docprint.document.write(content_vlue);
docprint.document.write('</center></body></html>');
docprint.document.close();
docprint.focus();
}
Kindly help me in this.
Thanks
Abe
On 8/27/08, warden [Andrew Leach - Maps API Guru] <
[EMAIL PROTECTED]> wrote:
>
>
> On Aug 27, 11:51 am, "Abraham Jebadoss" <[EMAIL PROTECTED]> wrote:
> > Andrew,
> >
> > Thanks for your help.
> > How can I assign gmnoprint class to controls like Large Control Map?
> > Please give me a sample code.
>
> What I meant was that the API assigns its controls to that class. You
> shouldn't need to, and presumably you have undone that assignment.
> Perhaps if you give a link we can see what's going on. I don't ask for
> a link more than twice, though.
>
> Andrew
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---