Hi Mike and all,
I think I've had a good idea, and that is to
use my feed to create posts in wordpress, then the info will come from
my own domain, and it might prove easier, to achieve my end goal.
I am using a plugin called geomashup, that lets me create a big map of
all my posts. So I would like to set this timer code to work on that.
There is a custom.js file where i can add extra google maps api
script, please find here.. http://bit.ly/73vcSW
and a guy called Dylan has kindly answered my post on geomashup google
group here
http://groups.google.com/group/wordpress-geo-mashup-plugin/browse_thread/thread/8465184c87109577
he advises this
"The place for your custom javascript is described here for Geo Mashup
1.2.10:
http://code.google.com/p/wordpress-geo-mashup/wiki/Documentation#Cust...
The piece of data you'll need that is not documented is the initial
post data for the map, which is passed to the custom javascript in
properties.post_data. "
So i was wondering and would be soooo pleased if anyone knows, how I
can combine this info with the timer script,
var counter=0;
function LoopMap() {
if (++counter > gmarkers.length) counter = 0;
GEvent.trigger(gmarkers[counter],"click");
setTimeout("LoopMap()",10000);
}
I am sure this feature would be appreciated by many and fingers
crossed its not too complicated.
Many thanks and best wishes,
tom
On Jan 19, 8:10 pm, tommo77funk <[email protected]> wrote:
> Hi Mike,
>
> Thank you so much for your reply, it makes a lot of
> sense since i could not even seem to customize the markers on the
> GGeoxml example. The feed is of all my latest panoramas on 360cities.
> I like the idea of a relay server but is probably too complicated for
> me, I will google it all the same.
>
> I have another example where each marker is hand coded, I expect it
> would work with that, but then I will keep on having to add code to
> it.
>
> Thanks so much for the interceptor example - great site by the way, it
> helped me a few years ago, I seem to drift in and out of gmaps, I am a
> photographer not really a coder and am always forgetting what I've
> learned before.
>
> is your inteceptor example global ?
>
> I tried it here and added looping scripthttp://bit.ly/8T6cpW
>
> your global array code looks ace, could it work on the interceptor
> example ?
>
> Thank you very much Mike, really appreciate your time.
>
> Best wishes,
>
> tom
>
> On Jan 19, 6:24 pm, Mike Williams <[email protected]> wrote:
>
> > You've got bigger problems than that.
>
> > Your biggest problem is that GGeoXml doesn't expose the markers that it
> > adds to the map, so there's no way to programatically open infowindows
> > on them.
>
> > Since the KML file isn't in your own domain, you can't use GeoXml or
> > EGeoXml without a relay server to pull the data into your own domain in
> > serve it from there.
>
> > Unless you can obtain the data some other way, then the only thing I can
> > recommend is to listen for the addOverlay events as GGeoXml adds the
> > markers to the map. It's not easy, and it's not futureproof. See
> > http://econym.org.uk/gmap/interceptor.htm
>
> > Your next problem is that in the AspSpider example, all the variables
> > and functions were global, but in your code everything is local to your
> > initialize() function. Code launched from setTimeout() executes in
> > global context and can only access global variables.
>
> > Once you've sorted that out, you need to put your marker references into
> > a global array and do something like
>
> > var counter=0;
> > function LoopMap() {
> > if (++counter > gmarkers.length) counter = 0;
> > GEvent.trigger(gmarkers[counter],"click");
> > setTimeout("LoopMap()",10000);
> > }
>
> > I assume that you want to open the infowindow with the contents
> > specified in the KML rather than hard coding the infowindow text as in
> > the AspSpider example, so just send a "click" event to the marker.
>
> > --
> > Mike Williams
--
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.