Hi Önder ALTINTAŞ, Thanks for your interest in ol3-google-maps! It's always nice to see people enjoying it.
I will try to explain the goals of olgm, how works and its limitations. For simplicity, I'll refer the following lib with these abbreviations: - OpenLayers - ol3 - OL3-Google-Maps - olgm - Google Maps - gm The first goal of olgm is to allow a simple implementation of a gm map into an ol3 map without too much efforts. That is: no actual gm API knowledge required, i.e. you can code with the ol3 and olgm APIs. The second goal is to make sure that the gm map and ol3 map are synchronized while zooming in and out. If one simply adds a ol3 map on top of a gm map and synchronize their zoom levels and center, one will notice that both are not perfectly synchronized. The layes in ol3 may 'zoom in' before gm. To allow a 'perfect' synchronization, olgm listens to the layers added in the ol3 map and will attempt to make them draw directly in gm instead, which eliminates the synchronization problem. This has the down effect of brining limitations, such as: no support for heat maps, nor vector feature clusters, etc. because we would need to write something similar using the gm API. This was done for layers such as TMS, WMS, etc. because they were easier to implement. olgm will try to manage the layer types it's aware of and make them render in gm instead. That's the default behavior. Know that you can deactivate this behavior for each type, letting ol3 continue drawing the layers and gm not being aware of it. This makes the map "not synchronized", but allows any feature you want available in ol3 to work without limitations. This is well demonstrated in this "Watch options" example: http://mapgears.github.io/ol3-google-maps/examples/dist/examples/watchoptions.html When the watch option for a type is enable, then olgm is responsible of drawing it. In your case, you may want to toggle off any "watch options", at least for your vector layers to allows things that are not natively supported by olgm such as Heatmaps, clusters, etc. Let me know if that helps or if you need more clarifications. Best regards, Alexandre On Wednesday, 31 August 2016 04:09:47 UTC-4, Önder ALTINTAŞ wrote: > > Hello there, > > Nice work tbh. This will solve many developer's problems I believe. > Customers always require google maps and ol3js gives many opportunities to > developers. > > On the other hand, unfortunately I found OL3-Google-Maps hard to use for > my projects. From it's limitations section I see that OL3-Google-Maps > doesn't support what ol3js supports. For example there are many features on > ol3js like HeatLayer, clustering, etc. From the documentation, it is > recommended not to use these features. On the other hand when I bind google > maps to my ol3js without OL3-Google-Maps (eventwise) I can use these ol3js > features freely and they work. I did not understand why you also created > your layer rules and recommendations about usage of ol3js. The main point > is -correct me if I misunderstood- putting restrictions on ol3js features > while using OL3-Google-Maps is a reason which I stay a bit far from > OL3-Google-Maps. > > 12 Ağustos 2016 Cuma 21:20:47 UTC+3 tarihinde Samuel Lapointe yazdı: >> >> Hi devs, >> >> With the new v0.10.0 pre-release of OL3-Google-Maps, the library is now >> compatible with OL3 v3.17.1. No other changes are included in this update. >> >> Release notes: >> https://github.com/mapgears/ol3-google-maps/releases/tag/v0.10.0 >> Website: http://mapgears.github.io/ol3-google-maps/ >> >> Thanks again to all contributors of OpenLayers 3 and OL3-Google-Maps. >> > -- You received this message because you are subscribed to the Google Groups "OL3 Dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/ol3-dev. To view this discussion on the web visit https://groups.google.com/d/msgid/ol3-dev/8a098a5f-8b12-4fac-a151-9cb2bda0690c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
