Hello, Larry,

   Well, I found a free converter and converted the shape file:

http://ceden.org/Data/counties.kml

   And I added the code I found on the google maps tutorial, so now my
code is this:


         if (GBrowserIsCompatible()) {
            countiesOverlay = new GGeoXml("./Data/counties.kml");
            map = new GMap2(document.getElementById("map_canvas"));
            map.setCenter(new GLatLng(36.4419, -120.1419), 6);
            map.setUIToDefault();
            map.enableDoubleClickZoom();
            map.addOverlay(countiesOverlay);
            setupDragSelect();
         }

http://ceden.org/mytest.php

I get no errors, but the counties don't show up.....    :-(

--Kris


On Nov 19, 4:18 pm, "[email protected]" <[email protected]>
wrote:
> On Nov 19, 3:36 pm, kalyson <[email protected]> wrote:
>
>
>
> > Thanks for the reply.   I have already done a lot of searching but
> > don't see the steps for this.
>
> > I am guessing that something known as a shape file is somehow
> > converted to a kml file.
> > So I can take any shape file of California counties and use one of
> > those free converters and get a klm file and just do this in my map
> > code:
>
> > addOverlay(newklmfile);
>
> > Is this correct?
>
> > (I am surprised that a kml file --if that is indeed what Google Maps
> > requires-- for California counties is not available already
> > somewhere.)
>
> Google has a search engine too...
>
> http://www.google.com/search?sourceid=gmail&rls=gm&q=kml%20california...
> (looks like there are some there)
>
>   -- Larry
>
>
>
> > Thanks,
> > Kris
>
> > On Nov 19, 3:12 pm, Rossko <[email protected]> wrote:
>
> > > >    We need to add lines on our Google Map of California for all the
> > > > counties.   Do I have to get a shape file and convert it to a kml file
> > > > to do a call to the addOverlay function?
>
> > > More or less, yes.  Try some of these for insight 
> > > -http://groups.google.com/group/google-maps-api/search?group=google-ma...

--

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=.


Reply via email to