Author
|
Message
|
Pavel Vladov
|
|
Group: Forum Members
Last Active: 7 Years Ago
Posts: 33,
Visits: 2
|
Nothing, but the hit testing does. When you move the mouse over the map, hit testing is done to determine which country is under the mouse cursor, so that we can highlight it and/or show some additional information in a tooltip.
Regards, Pavel
|
|
|
Robert Sholtes
|
|
Group: Forum Members
Last Active: 14 Years Ago
Posts: 10,
Visits: 1
|
Thanks for the information. (I just used the countries map you provided with the demo code so I'll look for some less detailed maps.)
Just out of curiosity, what would the # of map points have to do w/ converting a screen point to a Geo coordinate point?
|
|
|
Pavel Vladov
|
|
Group: Forum Members
Last Active: 7 Years Ago
Posts: 33,
Visits: 2
|
Hi Robert, The slowdown is caused by the fact that the map selected for the map examples is very detailed (some countries are composed of more than 50 000 points) and the hit testing of such enormous shapes take some time. If you want to speed up the process I recommend you to use less detailed maps.
Best Regards, Pavel Vladov
|
|
|
Robert Sholtes
|
|
Group: Forum Members
Last Active: 14 Years Ago
Posts: 10,
Visits: 1
|
I've been able to reproduce this in the MapProjections example code so it doesn't appear to be an issue w/ my logic.
Try these steps:
1. Set the projection mode to Equirectangular 2. Zoom out to 15-18% (probably doesn't matter, but makes it more apparent. 3. Scroll the map so the northern/western hemisphere is visible - e.g. scroll to show Alaska 4. Move the mouse over the map and notice how sluggish the geo position update is in the example panel. 5. Scroll to somehere in the middle of the map - around Africa - performance is easily 10x better!
|
|
|
Pavel Vladov
|
|
Group: Forum Members
Last Active: 7 Years Ago
Posts: 33,
Visits: 2
|
Hi Robert,
The performance degradation may be caused by using too many local styles instead of style sheets, not refreshing the view only when necessary or some other reason. I will be able to assist you better if you send me your sample project.
Best Regards, Pavel Vladov
|
|
|
Robert Sholtes
|
|
Group: Forum Members
Last Active: 14 Years Ago
Posts: 10,
Visits: 1
|
First, thanks for all of the support - you guys are fantastic!! (I did purchase Diagram based on your support.)
Anyway, here's my question/problem:
In my view that has a map loaded, I am seeing very sluggish performance whenever the map I've loaded is visible in the view. For example, using the document MouseMove event to determine the Geo coordinates is very fast as long as the view is not fully showing the map. However, as soon as the map is in the visible region, the calls to display coordinates have a significant lag.
I've not seen that problem in the Projections example, but for the life of me, I can't see what I've done differently in my code (other than using a few more layers in the drawing.) This lag is also apparent when a poly line shape is added/edited in the view - it can take a half a second to redraw a segment that has been moved by the user.
Any ideas on why I'd be seeing such a degradation in drawing performance? Thanks!
|
|
|
Nevron Support
|
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
Hi Robert, The coordinate support will work not only for world map but also for separate countries or smaller regions. Kind regards, Nevron Support Team
Best Regards, Nevron Support Team
|
|
|
Robert Sholtes
|
|
Group: Forum Members
Last Active: 14 Years Ago
Posts: 10,
Visits: 1
|
So far, the coordinate mapping seems to work fine. I've only been working with a world map so far, so I can't verify that it will work with shape files that are of smaller regions (e.g. countries, states, etc.) I'm assuming that for those cases, I just need to make sure the MapBounds are set to reflect the proper limits of the map region, correct?
|
|
|
Nevron Support
|
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
Hi Robert, The service pack has been just released and you can now download it from the public downloads section. Please, let us know how your evaluation is going. Also, send us your feedback regarding the service pack, it will be highly appreciated. Best regards, Nevron Support Team
Best Regards, Nevron Support Team
|
|
|
Robert Sholtes
|
|
Group: Forum Members
Last Active: 14 Years Ago
Posts: 10,
Visits: 1
|
Any update on the service pack that includes Geo-coordinate support? Thanks.
|
|
|