Discussion Forums  >  Maps, Device Location, Tracking

Replies: 7    Views: 265

remman
Aspiring developer
Profile
Posts: 10
Reg: Feb 22, 2012
Columbus
100
12/05/12 03:06 PM (11 years ago)

Custom URL map pop-up

I have a Custom URL page for my iOS app that opens up a website. On the website is an embedded Google maps page. When you open up this screen it pops up and asks if you want to open the map in the default iOS Map viewer. The Google map isn't the focal point of the page, so I'd rather it didn't ask this. Is there a way to keep it from popping up? Either some setting or a different way to embed the map in the webpage? Thanks!
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/05/12 03:20 PM (11 years ago)
Why not use the map plugin?
 
remman
Aspiring developer
Profile
Posts: 10
Reg: Feb 22, 2012
Columbus
100
like
12/05/12 03:21 PM (11 years ago)
Because the page's focus is not on the map, the page just happens to have a map on it.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/05/12 03:23 PM (11 years ago)
Oh sorry - I misunderstood. I'm guessing that Google is pushing this popup through from their end, in which case it may be difficult to circumvent.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
12/06/12 08:13 AM (11 years ago)
Is that map embedded in an iframe? That might do the trick? Here's a quick google- http://designshack.net/articles/html/embedding-google-maps-into-a-web-page-a-beginners-guide/ and who wins inf the ONLY 2 undefeated BCS teams were to meet? Would OSU/ND be a bigger game than Bama/ND? GO IRISH!
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/06/12 08:36 AM (11 years ago)
Go Bucks! :-)
 
remman
Aspiring developer
Profile
Posts: 10
Reg: Feb 22, 2012
Columbus
100
like
12/06/12 08:56 AM (11 years ago)
It looks like our map is embedded with iframe. Opening the page in Safari outside the app does not cause the popup, but does cause it inside our app. I've also tried out a different page with a map embedded using the Javascript Google Maps API and that does not cause the popup. It seems like this is something that the app does itself in certain situations. I'd like to just turn that popup off rather than messing with the Google Maps API if possible. I'd love to have an OSU/ND matchup. I think it'd be tough for us since we've been committing a lot of mistakes every game, but we do somehow find a way to win. Not unlike ND this year.
 
remman
Aspiring developer
Profile
Posts: 10
Reg: Feb 22, 2012
Columbus
100
like
12/10/12 02:34 PM (11 years ago)
I figured it out. For the Custom URL screen for iOS, if you don't want it to pop-up for Google Maps, go to BT_screen_webView.m in the BT_Screens folder. Scroll down until you see the "//google maps" section and comment it out. This will prevent any Custom URL screen from requesting to open Google Maps in the default application. I'll have to remember to do this if I re-download the source code, but it's not too big a fix if I do.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.