Zum Hauptinhalt gehen

Add a function to a map tip

Kommentare

3 Kommentare

  • Zack Robison
    I've never done this, but it seems like an interesting problem. Have you tried adding a dummy query clause behind the filename? This stack article (https://stackoverflow.com/questions/728616/disable-cache-for-some-images) describes the process; to steal an example: "<img src="image.png" /> would become <img src="image.png?dummy=8484744" />". Adding the query string prevents browser cache, which I suspect is your issue.
    0
  • Allison Charko
    Hi Zack,

     

    Thanks for your reply.

     

    Seems like if I supply a randomly generated number to the end of the URL, republish the service (the URL is stored in a related table), and close and open the map tip, the photo updates!

     

    I don't know if this solution will be feasible for us, but good to know that it could work!

     

    I'm still interested in seeing if I can somehow get the map tip to refresh at a certain interval. If I figure anything out, I'll be sure to post it!

     

    Thanks for your help!!

     

    Allison
    0
  • Zack Robison
    If you're trying to put script into Map Tips, you're going to have a bad time. You'll need to make customizations to the viewer in order to allow for that. You could put an iframe in there though, which may give you the leeway needed to accomplish what you want without needing to mess with Geocortex itself.
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.