Open felixnutella opened 11 years ago
Does the map show up with a simpler configuration?
I'm not aware of the maptypeid having an issue yet. I'm wondering what the parent widget size is. Does the map show up at all in any configuration?
Think I found the cause of the error. Apparently the Options supports both upper and lowercase string value for the maptype. But setting the maptype on the map object is not working with uppercase. And taking the name() from the MapTypeId enum returns an uppercase value, which in turns makes it fail.
Woups - sorry for closing :)
Thanks for reporting. I'm wondering if I should handle that. :)
Even if it is Googles mistake, I think it would be good if the project handles it - it's best if the code works as expected ;)
Good point, I'll have to look deeper at it.
Could it be that setting a maptype on a mapwidget BEFORE the widget is rendered would cause the map not to be displayed? Moving the maptype to the options object used instantiating the mapwidget works fine - but using the setMapTypeId(MapTypeId) screws it up.
This works:
This does not:
The only difference as I see is that the maptype is set on the options object when it works, and directly on the mapwidget when it does not.
Adding markers to the map works fine for both implementations, it's the map images and controls that does not show up.