Page 1 of 1

Code help, anyone?....Please.

Posted: Wed Mar 21, 2012 2:02 pm
by Jgc

Hi. Im not the best coder in the world (Im practicing to get better), but I was wondering if anyone would be so gracious as to help me out with some coding. I actually have a background in the video game development industry as an animation artist so I can understand some small scripts to a point...but anyway.......,

Okay, here goes -

I got my map on my app (that rhymed^^) working, but I want to have the little red place icons or blips that show up on the map to display the small "show info" window like when you search for a place in the Google maps app. It shows you the name, address, and all that about the place, and then you can click it to open the Google GPS navigator to start navigating directions for you.

This is what I need to do.... I tried going through the Google map api, but its so cryptic.....Really gives me a headache, so i am wondering if anyone would please be so kind as to provide me a small code snippet that would do this.

If you cant (or don't want too), please at least point me to a good source that I can learn how to do this. I would appreciate ANY help on this issue. I know how to modify code to an extent, but I just cant seem to write it outright......Anyway, this is the last piece of my project that needs to be created, then I can publish it, so please help.

Thank you in advance.


Code help, anyone?....Please.

Posted: Wed Mar 21, 2012 2:26 pm
by Jgc

okay, I just wanted to update this post and say I may have found my answer. Check out this code

"down vote
accepted google.maps.event.addListener(map, 'click', function(event) {
new google.maps.InfoWindow({
position: event.latLng,
content: event.latLng.toString()
}).open(map);
});"

Im not sure where to put this in order to test it. Any help would be GREATLY appreciated.


Code help, anyone?....Please.

Posted: Wed Mar 21, 2012 7:41 pm
by Jgc

Anyone?

I'm not looking for a hand-out just some helpful tip on how it works. Google map api sucks, I need something I can understand in a plain language that is not cryptic....I just want to display some custom data when a user clicks the map pointer icon on the map......I noticed someone put "doesn't need answer" under my post......YES it does need an answer i dont post for my health...I post cause im having a problem. Thats not very helpful customer service...... _

Any help is appreciated.


Code help, anyone?....Please.

Posted: Wed Mar 21, 2012 9:55 pm
by maxkatz

You posted that you found a solution, that's why the answered was marked as "Doesn't need answer".


Code help, anyone?....Please.

Posted: Wed Mar 21, 2012 9:56 pm
by maxkatz

Any custom JavaScript code goes into Run Custom JavaScript action or as JavaScript file (asset) and can then be invoked on button click, for example.