I have a button on my page that have a click event in javascript. In that event I trying to go to apple maps/google maps with specific coordinates. But when open the webpage in safari on an ios device nothing happens when i click the link, but if i open the webpage from chrome and click it opens apple maps. Anyone with the same problem or know a solution?
The link that i have take from https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html:
var adress = "http://maps.apple.com/?saddr=" + lat + "," + lng + "&daddr=" + centerLat + "," + centerLng;
window.open(adress, '_blank');