Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 662197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:21:06+00:00 2026-05-13T23:21:06+00:00

In my project site I am merging a base image (a map) with markers

  • 0

In my project site I am merging a base image (a map) with markers (the same marker always but repeated) according to a table in MySQL using the php function imagecopymerge.

I want to migrate this to jQuery since the refreshing of the image flicks, which is very ugly.

Could you please guide me to the best solution?

Thanks a lot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:21:07+00:00Added an answer on May 13, 2026 at 11:21 pm

    Am I right in thinking you have a static image which gets updated via user interaction? The updates get handled on the server and a new “merged” image is sent back to the client?

    If that’s the case, you may be able to replace it all with a fair bit of jquery. There’ll be differences though.

    I’d use the following strategy:

    1. Deliver the static background map to the client.
    2. Change whatever function that currently posts back to the server so it calls a jquery function.
    3. This function should create a new image (your marker) and put it over the appropriate spot on the map. You should be able to do this with css.
    4. The function should also keep track of the location of these markers so their position can be sent back to the server when the user is done.

    I’m happy to give more detailed suggestions if you can tell me exactly what you need to be able to do.

    Update

    Ok, so based on your comment, I understand that there’s a database table that dictates the contents of the map. It’s not necessarily updated by the current user, but you frequently check for changes.

    You’re already using ajax to do most of the work, so changing to jquery wouldn’t do too much. I think maybe you just need to think of a new way to handle the display of the new image.

    You could try a double-buffering technique by having two images in the same place in the page, only one of which is properly visible at any time.

    1. Do the same call to the server to check for changes and retrieve an image. I’m assuming you’re getting a new url for the update image, but if not, you may have to do something like that.
    2. Update the src of the image that isn’t being displayed on the page
    3. Show the hidden image but only after setting its opacity to 0.
    4. Using jquery, fade the new image in and the old image out.

    If done properly, the effect could be more like a smooth update of the map rather than a flicker.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a VS2008 web site project, I have a page open in split view.
I'm trying to use System.DirectoryServices in a web site project and I'm getting this
I need to get existing web pages into an existing ASP.NET web site project
In IIS 6, I am trying to deploy a Web Site project from Visual
How do I execute the Copy Web Site command for an ASP.NET project in
I've recently inherited a fairly large web site. The project is set up as
I'm working on an ASP .NET 2.0 site which uses a Web Application project
Anyone know what is the project home site of the RSS4J. I found several
I have a many-to-many relationship between Project and Site. I am trying to retrieve
I'm doing my first project with jquery: My site will have some tabs: 1.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.