daveredfern
12-10-2008, 09:32 PM
Google maps problem
Hello all,
I have this google map - http://uni.daveredfern.com/wdd2/places.html
I have two problems with it:-
1. Only the top left of each icon seems to be active so you can click to show the more information window.
2. the links in the sidebar should direct you to the corresponding location on the map but they don't work.
The javascript for it is at - http://uni.daveredfern.com/wdd2/js/places-map.js
Any help is much appreciated.
Dave.
__________________Dave Redfern - freelance website design
jasper_
12-10-2008, 10:33 PM
I think when you make your cIcon.iconAnchor as big as your cIcon.iconSize the click problem should be solved:
cIcon.iconSize = new GSize(50, 45);
cIcon.iconAnchor = new GPoint(50, 45);
cIcon.infoWindowAnchor = new GPoint(5, 25);
markerOptions = { icon:cIcon };
The second problem I have no solution for you right now, I don't know how to solve that. The google maps api documentation should help you more.
//EDIT
found a cool link http://econym.org.uk/gmap/example_map2c.htm
__________________
J. August
Web
daveredfern
12-11-2008, 04:04 AM
Quote:
Originally Posted by jasper_
I think when you make your cIcon.iconAnchor as big as your cIcon.iconSize the click problem should be solved:
cIcon.iconSize = new GSize(50, 45);
cIcon.iconAnchor = new GPoint(50, 45);
cIcon.infoWindowAnchor = new GPoint(5, 25);
markerOptions = { icon:cIcon };
The second problem I have no solution for you right now, I don't know how to solve that. The google maps api documentation should help you more.
//EDIT
found a cool link http://econym.org.uk/gmap/example_map2c.htm
Hello,
Changing the size of the iconAnchor doesn't work either.
I have been working of another example on that site - http://econym.org.uk/gmap/example_map3.htm.
I feel like i have gone through it line by line 100's of times and can't find how to fix it.
Dave.
__________________Dave Redfern - freelance website design
jasper_
12-11-2008, 06:16 AM
Ok, after grabbing the page with Firefox extension Scrapbook, I found out that there's an image overlaying those speak-cloud images you've used, and that image is much smaller then your cloud image.
its this image: http://ep2up.com/jasper/uploads/1228990548.png (hit ctrl+A after loading to see its size.
as you can see, that image is not wide enough to cover your entire image.
//EDIThttp://jmstudio.nl/scrab/
here's is an online example with a disabled google map, with maintained structure. This should give you more clarity on what's wrong.
__________________
J. August
Web