We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

How to re-use markers in Subgurim GMap contol

Medium Priority
1,371 Views
Last Modified: 2013-11-07
Hi
I'm hoping someone on EE has some experience of using the subgurim gMap control. In general this is a very good control but I'm experiencing a serious memory leak problem. I have an app that tracks vehicles, every minute it replots the vehicle curremt location. the problem is that the subgurim control does not offer a method to re-use existing markers so the system adds a whole set of new markers every minute. After 45mins it's using 1.5GB of memory!

has anyone solved this problem? I suspect it can be solved in javascript but I have no J skills

Many thanks

Comment
Watch Question

OK I worked this oput - or rather worked out a workaround.

The subgurim control builds up a complete (huge) javascript command each time it refreshes. If you use a marker managr to plot the markers then set the markermaneger to empty - all the existing markers are removed and the memory gets released

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.