Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Can ́t show user location

I gone true several tutorials and I cant get the pin that shows the current location from the user.

I did enable several pins over the map which is great

I just need the user to find him self since it is a golf course no streets

Im adding all my screens so that you can see all the code that I have customized from the tutorials.

When ever I do get in the teste asks me if I want appery know my location.

The only error I do see when I open my App is:
Failed to load resource: the server responded with a status of 404 (Not Found) http://ajax.googleapis.com/ajax/libs/...

  1. That’s an error.

    The requested URL /ajax/libs/jqueryui/1.10.3/themes//jquery-ui.min.css?ver=1.10.3 was not found on this server.

    Image Image Image Image Image Image

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Can ́t show user location

Hi Carlos,

Please check whether browser let you show your location, for example https://support.google.com/chrome/ans...

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Can ́t show user location

As you can see on the las image on the URL right side, there is the crome mark that the location permit is granted

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Can ́t show user location

Hi Carlos,

You have reinit your mapp with code:

pre

new google.maps.map(....

/pre

Try to comment/delete this code:

http://prntscr.com/49ohoc/direct

Also if it will be culprit of your problem try to use following code instead of yours:

pre

//Note: you need replace "mapName" with your map component name.
var map = Appery("mapName").options.mapElement.gmap('get', 'map');

/pre

Regards.

Return to “Issues”