Sundsvallskommun / OpenEMap-WebUserInterface

Open eMap user interface for the main map client
GNU Affero General Public License v3.0
4 stars 5 forks source link

Map - Mouse pointer get offset #123

Open anderserla opened 9 years ago

anderserla commented 9 years ago

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:

oep

anderserla commented 9 years ago

Could this be solved in OpenLayers @sweco-sebhar ?

ghost commented 9 years ago

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.

anderserla commented 9 years ago

OK, we've solved it that way so far in the integartyion on Open ePlatform. I will add documentation in the Client class

ghost commented 9 years ago

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.

anderserla commented 9 years ago

Maybe document it?