V2 to V3 help

117 views
Skip to first unread message

wsrphoto

unread,
Mar 28, 2012, 6:26:03 PM3/28/12
to Google Maps JavaScript API v3
I'm currently using 16 Google maps on my Web pages (http://
www.wsrphoto.com/mtstart.html), all with the same map key and code,
with another 6-8 planned. I've been working to convert the maps and
code from version 2 to version 3 without much success so far. I can
get the new map format and map style to display but I can't get it to
read the two external xml files which display line (point data) for
the national park boundary and the markers with the information
windows and the drop down menu.

At this point I need someone to convert one of the maps to version 3
so I can learn, such as http://www.wsrphoto.com/mtnews2.html . I don't
know if it's proper to offer compensation on this forum, but it's
there and if it's violates some rule, I apologize. I want to continue
to use external xml files as one (np boundary) is shared by all the
maps, making changes global, and the others make it easier to add
sites or update the information, from monthly to several times a year.

Until then I'll trudge through self-learning ;).

geoco...@gmail.com

unread,
Mar 29, 2012, 2:04:14 AM3/29/12
to Google Maps JavaScript API v3
On Mar 28, 3:26 pm, wsrphoto <sc...@wsrphoto.com> wrote:
> I'm currently using 16 Google maps on my Web pages (http://www.wsrphoto.com/mtstart.html), all with the same map key and code,
> with another 6-8 planned. I've been working to convert the maps and
> code from version 2 to version 3 without much success so far. I can
> get the new map format and map style to display but I can't get it to
> read the two external xml files which display line (point data) for
> the national park boundary and the markers with the information
> windows and the drop down menu.
>
> At this point I need someone to convert one of the maps to version 3
> so I can learn, such ashttp://www.wsrphoto.com/mtnews2.html. I don't
> know if it's proper to offer compensation on this forum, but it's
> there and if it's violates some rule, I apologize. I want to continue
> to use external xml files as one (np boundary) is shared by all the
> maps, making changes global, and the others make it easier to add
> sites or update the information, from monthly to several times a year.
>
> Until then I'll trudge through self-learning ;).

I ported one of Mike Williams' tutorial examples to v3. Does this
help?
http://www.geocodezip.com/v3_MW_example_map3.html

-- Larry

wsrphoto

unread,
Mar 29, 2012, 9:04:48 AM3/29/12
to google-map...@googlegroups.com
I tried porting some of the code but couldn't get it to work with mine. I think the core code of mine is ok for lines and markers but the initial opening and displaying commands aren't, and I can't find anywhere in Google's documentation or references how to correctly call and display an external xml file. Google could improve the application documentation, resorting to users' examples. This is how I learned v2. I'll keep trying and yours helps. Thanks.

geoco...@gmail.com

unread,
Mar 29, 2012, 9:32:05 AM3/29/12
to Google Maps JavaScript API v3
On Mar 29, 6:04 am, wsrphoto <sc...@wsrphoto.com> wrote:
> I tried porting some of the code but couldn't get it to work with mine. I
> think the core code of mine is ok for lines and markers but the initial
> opening and displaying commands aren't, and I can't find anywhere in
> Google's documentation or references how to correctly call and display an
> external xml file. Google could improve the application documentation,
> resorting to users' examples. This is how I learned v2. I'll keep trying
> and yours helps. Thanks.

In v2 there was a built in xml file access and parsing. That has not
been included in v3, but there is an example that does it; and my
example does it, using an external javascript include
"downloadxml.js" (mine is slightly different from google's)

There is also a discussion of how to do this in this example in the
documentation:
https://developers.google.com/maps/articles/phpsqlsearch_v3#createmap
under "Loading the XML Results"

-- Larry

wsrphoto

unread,
Mar 29, 2012, 10:07:49 AM3/29/12
to google-map...@googlegroups.com
Thanks, I'll look at it and test things.
Reply all
Reply to author
Forward
0 new messages