JACKSON LIANG
Posts: 0
Joined: Fri Aug 02, 2013 5:12 am

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

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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

JACKSON LIANG
Posts: 0
Joined: Fri Aug 02, 2013 5:12 am

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

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.

JACKSON LIANG
Posts: 0
Joined: Fri Aug 02, 2013 5:12 am

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

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 :(

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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

JACKSON LIANG
Posts: 0
Joined: Fri Aug 02, 2013 5:12 am

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

THANK YOU MARINA!! ur support has been great!

JACKSON LIANG
Posts: 0
Joined: Fri Aug 02, 2013 5:12 am

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

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.

Return to “Issues”