How to re-use markers in Subgurim GMap contol

Posted on 2009-02-09
Last Modified: 2013-11-07
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

    1 Comment

    Accepted Solution

    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

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now