@Larry : Okay I have updated the same link with my attempt at duplicating code to get another complex icon on the map. I can get marker 2 to display but it displays over the top of the original marker (at the same location) even though I've set the second icon up to display at different lat long coordinates.
Below are the other icons I will need to use on the map. They have exactly the same dimensions, shape & will use the same shadow image as the original etc. but the image itself will have a different middle icon & different colour, please see: Marker 1 can be found here: http://idl.newport.ac.uk/legendofkingarthur/markers/purple.png Marker 2 (currently overlapping marker 1 even though different lat long coordinates have been applied): http://idl.newport.ac.uk/legendofkingarthur/markers/blue.png Marker 3 (not coded in yet as I wanted to get 2 working first...lol!): http://idl.newport.ac.uk/legendofkingarthur/markers/green.png Marker 4 (not coded in yet): http://idl.newport.ac.uk/legendofkingarthur/markers/yellow.png Just to give you an understanding of where I need to go with this: The map will have a total of 12 different markers (at different locations) consisting of any of the 4 different icons I have stated above. Each location will have customised info windows with different content associated with each one. I am not sure as to what part of the code to duplicate to get this working properly...any ideas? I appreciate all the help you can give! On Aug 5, 10:45 pm, "[email protected]" <[email protected]> wrote: > On Aug 5, 7:12 am, egr103 <[email protected]> wrote: > > > I'm not great on using JavaScript but I try my best. > > > Currently I'm using the complex icon code for custom markers taken > > from Google's > > page:http://code.google.com/apis/maps/documentation/javascript/overlays.ht... > > but I would like to know what part of that code I duplicate in order > > to set up another complex icon in a different location?? > > > My testing site > > is:http://idl.newport.ac.uk/legendofkingarthur/testing-custom.htm > > > All help is appreciated > > How different is the other "complex icon"? I don't see any attempt on > your map to create another. > > Is it the same, if so, you can use it for another location. > > If it is completely different, you have to duplicate all the code that > defines the icon and change it appropriately. > > -- 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.
