Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Async problem with Google Maps



Permlink Replies: 3 - Last Post: Dec 1, 2016 10:59 AM Last Post By: Jeff Lynn
Jeff Lynn

Posts: 9
Registered: 11/24/13
Async problem with Google Maps
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 1, 2016 6:48 AM
Hi there
I'm developing a web application that displays Google Maps. My problem is that displaying the map in an IWRegion stops the async system, which means that from that point on all the async calls (timers, buttons etc.) don't work anymore. I'm stuck here. Any idea what to do?
Daniel Fields

Posts: 585
Registered: 11/29/04
Re: Async problem with Google Maps
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 1, 2016 7:04 AM   in response to: Jeff Lynn in response to: Jeff Lynn
I tried to build my own interface to GMaps, but ran into too many issues. I am now using TMS IntraWeb WebGMaps. It has been updated regularly, and is very reliable.
http://tmssoftware.com/site/iwwebgmaps.asp
Jose Nilton Pace

Posts: 68
Registered: 5/15/98
Re: Async problem with Google Maps
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 1, 2016 7:22 AM   in response to: Jeff Lynn in response to: Jeff Lynn
Hi Jeff, i´m currently using https://hpneo.github.io/gmaps/
CDN Here:
<script src="https://cdnjs.cloudflare.com/ajax/libs/gmaps.js/0.4.24/gmaps.min.js" integrity="sha256-C3vPkcHJk9t5Pi6C+Nc+faqv/EZZqNBnxoDfTXEorQk=" crossorigin="anonymous"></script>


My tecnique is add an javascript variable ( w_start ) on template.
GMaps.geocode({
address: w_start,

and put in IW this variable with data.
   Self.JavaScript.Add( 'var w_start = "your dinamicaly address";' );
Jeff Lynn

Posts: 9
Registered: 11/24/13
Re: Async problem with Google Maps
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 1, 2016 10:59 AM   in response to: Jeff Lynn in response to: Jeff Lynn
Finally I was able to solve the problem, there was a wrong filename in the main form's Stylesheet propety. I don't know why this stopped the async system after a google maps api call though, Anyway, it is working now. Thank you for the answers.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02