On Aug 12, 6:30*am, "C. (http://symcbean.blogsp ot.com/)"
<colin.mckin... @gmail.comwrote :
On Aug 12, 7:08 am, long_way <yilongwei....@ gmail.comwrote:
Hi there,
Hi,
Wouldn't it just be simpler to use Google maps?
I'm not overly familiar with greybox, but it should be fairly
straightforward to amend the code. You need to seperate the problem of
how to position the overlay with how to integrate it in greybox.
I'd steer clear of changing the code of greybox if possible - keeping
your changes inline with new functionality are likely to be a pain -
it would be easier to create a wrapper around GB_showImage(), however
greybox seems to work by creating a new frame - which you'd need to
the reference to position the marker. A simpler bet might be to open
an HTML page in greybox and embed the marker handling javascript
within it.
HTH
C.
Hi C.,
thank you for the response and your suggestions (and I apologize for
the delayed reply).
I was also considering Google maps instead, which has many advantages
(one can zoom-in etc) however I was hoping that only a slight
modification of the GreyBox code would allow creating another layer
and positioning a gif file there. It appears it is not as simple as I
have thought.
The Google map option has one disadvantage: for each place I would
have to create a separate html file and then display that html file in
the GreyBox pop up window... creating multiple html files is similar
to creating multiple maps (with markers indicating different places);
(in case of modified GreyBox code I would use one map and one marker
only), without the GreyBox modification the maps would take up more
space on the server and html files will depend on the availability of
the Google map service.
I agree, probably the best solution is to open a html file and then
manipulate the position of the market with JS in that html file (as
opposed to making changes in the GreyBox js code), because the size of
such html files will be much smaller than the size of multiple map
image files...
Thank you for your suggestions again!
best regards,
m