Page 1 of 1

How do i add a hyperlink button on my custom marker?

Posted: Wed Aug 14, 2013 7:45 am
by JACKSON LIANG

Hi I am trying to add a hyperlink button that would navigate to my custom marker on the google map after following http://docs.appery.io/tutorials/addin.... Could anyone tell me thanks.


How do i add a hyperlink button on my custom marker?

Posted: Wed Aug 14, 2013 8:02 am
by Maryna Brodina

Helllo! Sorry, not sure I understand. Could you clarify do you need the marker to be on the center of the map?


How do i add a hyperlink button on my custom marker?

Posted: Wed Aug 14, 2013 11:13 am
by JACKSON LIANG

I already have custom markers on the map i created, i just need a button on the user interface so that when i click on it, it would link me to the position on the custom marker. Like for example i want to click on the button and this would take me to San Francisco, America on the map.


How do i add a hyperlink button on my custom marker?

Posted: Wed Aug 14, 2013 11:16 am
by JACKSON LIANG

well i have multiple markers on the map already so i like i want to create a button for each marker so then when i click on it it would refresh the map to the location intended. Sorry I have poor writing skills :(


How do i add a hyperlink button on my custom marker?

Posted: Wed Aug 14, 2013 11:56 am
by Maryna Brodina

On button click center map on marker code$("[name = 'googlemapName']").gmap({
'zoom':15,
'center': new google.maps.LatLng(37, -122)
});/code
where 37, -122 - marker coordinates (latitude, longitude)
15 - zoom


How do i add a hyperlink button on my custom marker?

Posted: Wed Aug 14, 2013 12:07 pm
by JACKSON LIANG

THANK YOU MARINA!! ur support has been great!


How do i add a hyperlink button on my custom marker?

Posted: Wed Aug 14, 2013 1:16 pm
by JACKSON LIANG

Sorry Marina I just tried the code. The code works if i have another button2 ,running the code u just gave me. It zooms to the location specified on the longitude and latitude but how do i keep the markers i had before to continue displaying on the map.

I have another button1 that marks all the locations i had before but when i click on button2 it doesnt work. What to do?

The purpose of what im trying to do is i want to have a button for every checkpoint so that i can zoom to my markers as well as display every other checkpoint if this makes sense please let me know if i should clarify better.