Page 1 of 1

Google Map Marker Titles

Posted: Thu May 16, 2013 12:06 pm
by Nate Snyder

I am having trouble getting Google map marker titles to work. I've pasted in part of the JS below, which has been compared to other examples on here. Everything works but the title. Any ideas?
Thanks...

var getmylatitude = localStorage.getItem('localmylatitude');
var getmylongitude = localStorage.getItem('localmylongitude');
marker = new google.maps.Marker({
position: new google.maps.LatLng(getmylatitude, getmylongitude),
map: map,
title: "My Location",
icon: "http://www.google.com/mapfiles/arrow.png"
});


Google Map Marker Titles

Posted: Thu May 16, 2013 12:30 pm
by Nate Snyder

I just realized this works only when holding the mouse over the marker. This is OK for web apps, not so much for mobile. Is there any way to show the marker title all the time?


Google Map Marker Titles

Posted: Thu May 16, 2013 12:38 pm
by Kateryna Grynko

Hi Nate,

We'll look for a solution.


Google Map Marker Titles

Posted: Thu May 16, 2013 6:17 pm
by Maryna Brodina

Hello! Sorry for late reply, looks like it's not possible. Try to use InfoWindows - this link should help https://developers.google.com/maps/do...


Google Map Marker Titles

Posted: Fri Feb 21, 2014 3:05 am
by Alex GG

Hello maryna...I follow this tutorial http://docs.appery.io/tutorials/addin...
and managed to add info windows to the markers. On success event of locationsList I save the response on lacal storage, then, parse the variable and assignt to avariable called row, and then for use row.name for the info window...

In browser the info windows are ok acording to the locations, but in mobil, (xperia and iphone) each one shows different names of locations..

here some s/s of the problem...

No errors in console...
I know that debug this problem could be not easy, but if you can take a look to my app, or give me any suggestion I be very glad =)

Image

Image


Google Map Marker Titles

Posted: Fri Feb 21, 2014 3:20 am
by Illya Stepanov

Hi Alex - your app is shared with us? If Yes - can you remind the app name, please.


Google Map Marker Titles

Posted: Fri Feb 21, 2014 6:33 am
by Alex GG

I just share it...the app name is distritofitness. As I wrote, app works pretty fine in browser...but in device (both tester and installed apk the info window are assigned in a random fashion) this map is suppose to locate bussiness around 5 kms of me....so for you to test, maybe you ́ll have to create a db...

Hope you can guide on how to solve this ... I ́m almost ready to deploy to google play..

Regards


Google Map Marker Titles

Posted: Fri Feb 21, 2014 10:36 am
by Kateryna Grynko

Hi Alex,

Sorry, we can't find how to reproduce this. Please describe in detail.


Google Map Marker Titles

Posted: Fri Feb 21, 2014 9:42 pm
by Alex GG

Hello Katya,
I tried with http://docs.appery.io/tutorials/addin... instead,,,and now my map is working just fine, both in browser and device...It ́s better to use this way if you have the coords in db too..

Thanks =)