언어 설정

Menu
Sites
Language
Google maps should not be displayed

Hello,

Chrome/Tizen browser is displayed Google maps.

However, Tizen Web project running in the Google map should not be displayed.

What must be done so that the map is displayed in the web application?

Responses

4 댓글
talari praveen kumar

Hi 

Try the code given in below link

http://w3schools.com/googleapi/google_maps_basic.asp

Add  <access origin="*" subdomains="true"/> in config.xml file. I tested and it is working fine.

Imam Mohammad Bokhary

Hello Mr. Praveen Kumar,

I need to get the current position through the tizen device. But I did not found the current position using the code below:
 

var map;
var myPosition;
var infowindow;

window.onload=getLocation;

function getLocation() // get the current location
{
    if (navigator.geolocation)
    {
        navigator.geolocation.getCurrentPosition(initialize, showError);
    }
    else
    {
        alert("Geolocation is not supported by this browser.");
    }
}

function initialize(position)
{
      var pyrmont = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
      
      map = new google.maps.Map(document.getElementById('googleMap'), {
        center: pyrmont,
        zoom: 16,
        mapTypeId: google.maps.MapTypeId.ROADMAP
      });

}

 

Would you please help me to find the way to get current location for tizen device?
ow, one thing this code is working perfectly in any browser even in Simulator but the device.

Thanks in advance.

AVSukhov

Hello,

Do you add location privilege?

Imam Mohammad Bokhary

Yes, I add the preivilege and it's working. Thanks a lot buddy..:)