Sie sind nicht angemeldet.

  • »John Myrstad« ist der Autor dieses Themas

Beiträge: 91

Wohnort: Norway

Beruf: Product Specialist @ www.fuglefjellet.no

  • Nachricht senden

1

Sonntag, 3. Oktober 2010, 15:07

level based hotspots/plugins method

I`d like a method to show/create plugins/hotspots based on levels in multiresolution images. The events.onviewchange is using too much memory to populate a gigapixel image with detail hotspots/plugins

Typical usage scenario: Put plugin/hotspot info on 1000 houses in a gigapixel image of a city, which is only visible/created when zoomed in to a specified level. On a higher ( or is it correct to say lower? ) level there might be hotspot/plugins for streets/wards.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »John Myrstad« (6. Oktober 2010, 23:51)


2

Mittwoch, 6. Oktober 2010, 20:03

How are you using onviewchange? Do you perform the hotspot manipulation every time the event is triggered? You could try implementing your own minimum interval system, such as a timestamp with the time of the last check (onviewchange would first check if it's been more than X seconds since the last check before doing the heavy stuff) or a plugin that checks the FOV every X seconds and then does the hotspot adding and removal from within itself... Where X is for example 1 second.

  • »John Myrstad« ist der Autor dieses Themas

Beiträge: 91

Wohnort: Norway

Beruf: Product Specialist @ www.fuglefjellet.no

  • Nachricht senden

3

Mittwoch, 6. Oktober 2010, 23:58

I`m just worried about overusing it since Klaus gave a warning in release notes:

Zitat

onviewchange
  • is called on every view change
  • note - this event should be used carefully, don't make "heavy" operations/changes here this events will be called every frame on moving

Ähnliche Themen