On Apr 6, 4:49 pm, Paul Frost <[email protected]> wrote:
> I hate to be a pain but...
>
> Would it be possible to bypass the read in data from xml file and
> just read in a hardcoded list within the script (I would generate
> the list with php from the database)?

Of course.

> This would save the XML file creation and the need for the
> downloadxml.js

I'm not sure why that is an advantage (but it is your map, so your
choice).  If you were already outputting xml for your v2 map, you
could use the code as is.

>
> I had hacked the code in the V2 example where the points are
> inserted but can't seem to get it working with the V3 code. This is
> what I did then, with the {stuff} generated from the database:
>
> var point = new GLatLng({lat},{lon});
> var marker = createMarker(point,"{title}","<strong>{title}</
> strong><br><a href='{link_address}'>Full details</a>");
> map.addOverlay(marker);
>
> Example here:http://www.stag-orienteering.co.uk/home/events/

That is a v2 map.  Where is the version that you can't get working
with v3?

It should be just like what you did for v2 (remove the guts from the
loop that processes the xml and apply it to each entry from your
database, making sure to do the initial stuff before you output the
marker data and the final stuff after you finish)

  -- Larry



>
> Paul
>
> On Apr 6, 10:57 pm, Paul Frost <[email protected]> wrote:
>
>
>
>
>
>
>
> > Thanks Larry
> > Yes I did miss it, I read the first bit of your reply and didn't
> > notice the link after my quoted text.
> > I appreciate the help.
> > Paul
>
> > On Apr 6, 9:48 pm, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Apr 6, 1:35 pm, Paul Frost <[email protected]> wrote:
>
> > > > I'd linked to the generic example that I copied the code from.
>
> > > > This is a link to one of my websites using the V2 dropdown select
> > > > example:http://www.clydesideorienteers.org.uk/home/events/
> > > > and this is a link to one using the geocodezip V3 sidebar example
> > > > code:http://www.basoc.org.uk/home/events
>
> > > > So I want the Basoc site to have the dropdown select like the Clyde
> > > > site but using the V3 API
> > > > I'll edit the code to make it work with data from the ExpressionEngine
> > > > CMS I use, repeating the loop where the points are added to the map.
>
> > > Did you miss this:http://www.geocodezip.com/v3_MW_example_map15c.html
>
> > >   Larry
>
> > > > Paul
>
> > > > On Apr 6, 12:52 am, "[email protected]" <[email protected]>
> > > > wrote:
>
> > > > > On Apr 5, 11:41 am, Paul Frost <[email protected]> wrote:
>
> > > > > > I don't have a map that doesn't work, I have one using API V2 (as
> > > > > > linked to)
>
> > > > > The only map I see a link to is an example on Mike Williams' tutorial
> > > > > page, that isn't yours.
>
> > > > > > that I would like to convert to V3 as I understand that
> > > > > > it's faster and better on mobile devices.
> > > > > > I also have the V3 sidebar example of yours 
> > > > > > (http://www.geocodezip.com/
> > > > > > v3_MW_example_map2.html) but I lack the javascript skills to work 
> > > > > > out
> > > > > > what needs to change to make it generate a dropdown select instead 
> > > > > > of
> > > > > > the sidebar.
>
> > > > >http://www.geocodezip.com/v3_MW_example_map15c.html
>
> > > > >   -- Larry
>
> > > > > > Apologies if I have asked in the wrong place, I'm not sure where 
> > > > > > else
> > > > > > to ask this sort of question.
>
> > > > > > Paul
>
> > > > > > On Apr 5, 7:20 pm, "[email protected]" <[email protected]>
> > > > > > wrote:
>
> > > > > > > On Apr 5, 10:13 am, Paul Frost <[email protected]> wrote:
>
> > > > > > > > I'm looking for a V3 version of this example using a dropdown 
> > > > > > > > select
> > > > > > > > menu to open info windows when there are multiple markers.
> > > > > > > > (API V2) by Mike Williams 
> > > > > > > > -http://econym.org.uk/gmap/example_map15c.htm
>
> > > > > > > > This should be more usable than a sidebar list on mobile 
> > > > > > > > devices.
>
> > > > > > > And what problems are you having implementing that?  The change 
> > > > > > > from
> > > > > > > sidebar to drop down is more a Dynamic HTML/Javascript question 
> > > > > > > than a
> > > > > > > google maps javascript API question.  But if you post a link to 
> > > > > > > your
> > > > > > > map that doesn't work, you may get some suggestions on how to fix 
> > > > > > > it.
>
> > > > > > >   -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to