Hello Ralf, Thanks for your post, it leads me on the right way In fact, the map.getProjection() is defined after the map is loaded, but it's not the case for map.getBounds() ! My event is on "bounds_changed" and unfortunately the map.getProjection() was still undefined (it was apparently not the case two years ago, and I don't know why) Also, I put an if( map.getProjection()) inside the function of the event, and that works again, fine! Welcome from France ! Philippe
On Tue, Mar 27, 2018 at 6:14 PM, ralfwessels <i...@ralf-wessels.de> wrote: > maybe this helps: https://stackoverflow.com/questions/17191664/why- >> getprojection-is-not-working-in-v3 >> > Ralf > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Google Maps JavaScript API v3" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/google-maps-js-api-v3/28Yx5EWX8as/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > google-maps-js-api-v3+unsubscr...@googlegroups.com. > To post to this group, send email to google-maps-js-api-v3@ > googlegroups.com. > Visit this group at https://groups.google.com/group/google-maps-js-api-v3. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-js-api-v3+unsubscr...@googlegroups.com. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. Visit this group at https://groups.google.com/group/google-maps-js-api-v3. For more options, visit https://groups.google.com/d/optout.