Open anderserla opened 9 years ago
Could this be solved in OpenLayers @sweco-sebhar ?
Not sure, might need to be fixed in the integration. I'm not sure the issue will be resolved by triggering "resize" (i.e this: http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.updateSize). I recall that this might be related to CSS stuff.
OK, we've solved it that way so far in the integartyion on Open ePlatform. I will add documentation in the Client class
Ok, so updateSize works? In either case I think it's best to leave it up to integration to inform of size changes, so documentation seems like the best idea.
Maybe document it?
When a div outside the map changes size (the red error banner in image below) it seems that the map doesnt recognize this, because the mouse position gets offsetted.
Solution: Trigger resize event manually when resizing divs in integration environments?
Example: