Nate Snyder
Posts: 0
Joined: Fri May 03, 2013 5:57 pm

Google Map Marker Titles

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"
});

Nate Snyder
Posts: 0
Joined: Fri May 03, 2013 5:57 pm

Google Map Marker Titles

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Google Map Marker Titles

Hi Nate,

We'll look for a solution.

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

Google Map Marker Titles

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...

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

Google Map Marker Titles

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Google Map Marker Titles

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

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

Google Map Marker Titles

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Google Map Marker Titles

Hi Alex,

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

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

Google Map Marker Titles

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 =)

Return to “Issues”