twands
asked on
Want to display an InfoWindow when clicking a Marker on a Google Map
Hello: This is a followup to a earlier wuestion dealing with using Google Maps within Access. I am having an issue getting an InfoWindow to Popup on my map when I click a marker. I have what I believe to be the right code but it is giving me a syntax error when I try to map the markers. If I rem out the code the markers plot fine. I have attached a Database and the associated map.
Here is the code that is giving me the problem.
// Create an InfoWindow to display a Message about the Marker when clicked
var infowindow = new google.maps.InfoWindow({
content: 'It Works'
})
// Adding a click Event for the Marker
google.maps.event.addListe ner(oMap.m arkers, 'click', function() {
// Call the open method of the InfoWindow
infowindow.open(omap, oMap.markers);
})
You can run the code by opening the New Properties and selecting New Properties from the Mapping Options drop down and then click Map my Properties.
Any help or suggestions will be greatly appreciated.
Thanks,
Tim Google-Mapping-.zip
Here is the code that is giving me the problem.
// Create an InfoWindow to display a Message about the Marker when clicked
var infowindow = new google.maps.InfoWindow({
content: 'It Works'
})
// Adding a click Event for the Marker
google.maps.event.addListe
// Call the open method of the InfoWindow
infowindow.open(omap, oMap.markers);
})
You can run the code by opening the New Properties and selecting New Properties from the Mapping Options drop down and then click Map my Properties.
Any help or suggestions will be greatly appreciated.
Thanks,
Tim Google-Mapping-.zip
your mdb is well locked down, i cannot get into the form to fiddle and try and diagnose the problem.
ASKER
Here is a unzipped version. Let me know if you have any other issues getting in. Geocoding.html MapGeocoding.mdb
have you you locked the mdb so i cannot go into design mode or open the DB window using f11.
i cannot get in to the code to step through, and test
i cannot get in to the code to step through, and test
ASKER
All rescrictions have been taken off of theis DB. MapGeocoding.mdb
Sorry i have been on holidays, setting up new business and working on some contracts..
I shall have a look at your new opened DB now..
Do you still need this question answered?
I shall have a look at your new opened DB now..
Do you still need this question answered?
ASKER
Yes please
OK i am in it, stepped through and see where the problem occurs... will dig around for you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for taking a look at it. I appreciate your time. I was hoping it was something simple but apprarently it is not. I may have to start over with the mapping with mapping code that does what I need and then try to add my database logic into that.
good idea.
sorry i was not much help :P
sorry i was not much help :P
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
ASKER
I don't have a problem closing this question but I don't think any point should be awarded. No solution was ever given. I would prefer that someone would give a viable solution but so far there has been none.