On Feb 24, 7:31 am, hob rolluk <[email protected]> wrote:
> As you may have guessed i'm very new to this and my project is at
> early an stage of development.
>
> Firstly the map has a height set in the css.

Unfortunately whether you think it is set or not, IE(6) doesn't
understand it and sets the map to 0 size, so I can't see it.

>
> I have looked at many tutorials and have not found any that are very
> clear (I don't really understand Java so I guess they never will)
>
> My map displays the icons i have set.......
>
> var railIcon = new GIcon(G_DEFAULT_ICON);
> railIcon.image = "http://newmedia.leeds.ac.uk/ug07/cs07ra/rolluk2/
> cs07ra/wwwroot/images/rail.png";
> railIcon.iconSize = new GSize(35, 40)
>
> but the pop up window does not work,  I've spent days messing around
> with code but haven't got anywhere.  it seems to me like a little
> labelling mistake may be the issue as when I add
> 'map.addOverlay(marker);' at the bottom of the code, the png icons I
> have set have the red google pins on top of them which do allow the
> pop up.

That is because you are not adding the marker with the infoWindow on
it to the map. You do this:

var marker = createMarker(point,';lkj<br><img src="images/;lkjF65D1614-
CF7E-9F5C-80764A3BF4528223.jpg"><br>;;lk;lk<br>high<br>1<br>Added by:
Hob Adams 62')

map.addOverlay(new GMarker(point, markerOptions));

Which creates a marker with an infoWindow (using the createMarker
function. Then create another marker (without an infoWindow at the
same place, with the custom icon defined by markerOptions), and adds
that one to the map.

You need to pass the marker options into the createMarker function,
then add the marker it creates (change it to use them) to the map.

  -- Larry

>
> I'm sorry if this all seems stupid, as I said I'm just grasping some
> understanding of the code.

-- 
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.

Reply via email to