branflake2267 / GWT-Maps-V3-Api

GWT Maps V3 Javascript Bindings
Other
144 stars 113 forks source link

Very slow working... 2 polylines + markers #146

Closed wikiro closed 10 years ago

wikiro commented 11 years ago

Here the example: http://wikiroutes.info/updates/22152

Gooogle maps version 2 was very fast. What is the reason? How to increase perfomance?

branflake2267 commented 11 years ago

Do you have some source?

wikiro commented 11 years ago

If you look at showcase http://gonevertical-apis.appspot.com/
map: Directions Service, Distance=76,2 км Duration=53 мин. it works slow too...

branflake2267 commented 11 years ago

I don't see any latency with the directions service in the showcase and if there is it most likely network related. The wrapper merely wraps the direction service with a call and callback and doesn't do anything special so it wouldn't slow it down. The showcase does have many maps loading at once so it might slow it down some but I've never noticed. Can you add some timing output so I could get a feeling for how slow?

branflake2267 commented 11 years ago

I might suggest asking javascript user group to see if anybody has had the same issue?

wikiro commented 11 years ago

http://wikiroutes.info/spb?routes=674

Zoom map and you will see that markers becomes bigger or smaller and polyline too. It might depend on that maps 3 used canvas. How to disable this? in version maps api 2 they use a < path > tag

branflake2267 commented 11 years ago

Can you add a screen shot to this to show me what you are seeing specifically. I zoomed in on the map and I see the polyline and markers shrinking on the zoomin.

Screen Shot 2013-02-03 at 9 25 35 AM

branflake2267 commented 11 years ago

Cool site! Is that yours and could I add that link to the readme?

wikiro commented 11 years ago

Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.13

_zoom in:_ in

_zoom out_ out

yes, it's my site, yes you can add, thank you

branflake2267 commented 11 years ago

I tried zooming in and out on chrome and I didn't get missing squares yet.

branflake2267 commented 11 years ago

I'm wondering if you could check the chrome inspector to see if there is any javascript errors in the console?

wikiro commented 11 years ago

please, try in opera

branflake2267 commented 11 years ago

I don't have control over the rendering in the map since we are just wrapping the javascript methods. I might see what the group might say about this subject: https://groups.google.com/forum/?fromgroups#!forum/google-maps-js-api-v3

twistedpair commented 11 years ago

A tip, encode your track at multiple levels. Encoded polylines are made sparser at more zoomed out levels, meaning that the points you cannot see at a given level are not rendered. This is making rendering faster. You can use encoded polylines with the library and the encoding utils.

twistedpair commented 10 years ago

Closing because it is not apparent that this issue is caused by the GWT-Maps-V3-API wrapper. The issue is likely an artifact of the underlying JS lib based on browser and hardware. As such, it is beyond the scope of this project to fix these issues.