Hello all. This is my first post/question here. I've been asked to look into making a gmap interface for a project at work where we can ask people to mark important locations, storing the information in a database. My programming and development knowledge is minimal at best, but somehow I have managed to create something that semi-works using Mikes tutorials on Econym as well as various other bits of info on the net.
The current version of the map in question is here: http://www.zpyder.co.uk/tess/mapping/db4/test.html When the user clicks on a location on the map, it opens a window with 2 selection boxes, the user clicks the relevant boxes, choosing one of three values, and assigns a rank of importance, and then submits the marker. This then gets stored in a database. I've managed to use Mikes tutorials to get custom markers to show upon the page load. A different marker is used for each of the values. The problem is that new markers created in the current session default to the basic marker icon. I'd like to make it so that they also appear with the correct custom icon. I've tried a few different things and each thing has caused a different issue, from totally breaking the map, to not changing the icon from the green "temporary" one. The things I've tried have been messing around with: // == remove the input marker and replace it with a completed marker map.closeInfoWindow(); var marker = createMarker(lastmarker.getPoint(),["Value: "+values+". Score: "+score+"."]); GEvent.trigger(marker,"click"); } These have included changing "createMarker" to "new GMarker(point, gicons[value]); (this works for the existing points). I can tell that something may need to be different though as unlike the existing point, this doesn't use a function? Could it be something to do with the completed marker code not actually querying the database to get the latest value? I'm asking this as I've had a look through the help and it seems most custom icon questions refer to data being pulled from a database, rather than icons created in the session by the user? Any help is greatly appreciated, my hair loss has progressed to hair loss & greying hairs because of this project I'm sure! Thanks, Chris Moody -- 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.
