Please read this:
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines

dont post code.

but other than that it looks like the static map is not ideal, as you
loading a KML file.

What happens with print preview of your page currently.


On 20/02/2009, NP <[email protected]> wrote:
>
>  Hi Berry,
>
>  I haven't started yet but it is not static map.
>
>  I am showing counties on google amp with lable and now I want to put
>  print button on map.
>
>  I wrote code in java script.Here is my code.
>
>   function load() {
>
>         if (GBrowserIsCompatible()) {
>
>                 map = new GMap2(document.getElementById("map"));
>                 map.addControl(new GSmallMapControl());
>                 map.addControl(new GMapTypeControl());
>                 map.setCenter(new GLatLng(37.4419, -122.1419), 13);
>
>                 map.enableScrollWheelZoom();
>                 geocoder = new GClientGeocoder();
>
>
>
>             theNext();
>
>            if (window.attachEvent) {
>                         window.attachEvent("onresize", function() 
> {this.map.onResize
>  ()} );
>            } else {
>                          window.addEventListener("resize", function()
>  {this.map.onResize()} , false);
>            }
>         }
>     }
>
>
>     function theNext() {
>
>       var county=new Array();
>            county[0]="Adams_IL";
>
>         if (nextCounty < county.length) {
>           setTimeout('getCounty("'+county[nextCounty]+'",theNext)',
>  200);
>           nextCounty++;
>         }
>       }
>
>      function  getCounty(countyName, next){
>       var name=countyName.split("_");
>
>             var geoXml = new GGeoXml("http://xyz.net/
>  images/"+countyName+".kml", function() {
>
>               if (geoXml.loadedCorrectly()) {
>
>                 geoXml.gotoDefaultViewport(map);
>                 center= geoXml.getDefaultCenter();
>                 var label = new ELabel(geoXml.getDefaultCenter(),name
>  [0], "style1");
>                 map.addOverlay(label);
>               }
>            });
>
>             map.addOverlay(geoXml);
>             next();
>      }
>
>
>  Could you please post some code to how to put print button on this
>  code with its printing functionality?
>
>
>  On Feb 20, 11:20 am, Barry Hunter <[email protected]> wrote:
>  > A fairly good way of doing this is with the Static Maps API - if you
>  > map is simple enough that the the static api can reproduce it.
>  >
>  > Otherwise it should be possible to get a javascript api based map to
>  > print most features- with a bit of work.
>  >
>  > what parts of it are you having problems with?
>  >
>
> > On 20/02/2009, NP <[email protected]> wrote:
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  > >  Hi,
>  >
>  > >  I have created google map with help of api and now I would like to add
>  > >  print button on map so when user click on this button they can print
>  > >  this custom map.
>  >
>  > >  Could you please let me know how toa dd this print button on map or
>  > >  some example where some one has developed print button which has print
>  > >  functioality?
>  >
>  > >  -Thanks,
>  >
>  > >   NP
>  >
>  > --
>
> > Barry
>  >
>  > -www.nearby.org.uk-www.geograph.org.uk-- Hide quoted text -
>  >
>  > - Show quoted text -
>
> >
>


-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to