What's New
ROU-3174 - Now, we can use the new Map’s optional configuration AutoZoomOnShapes to allow the auto zoom feature to adjust and fit all shapes displayed on the map.This functionality is only applicable to Zoom = Entities.Zoom.Auto.For Leaflet Maps, this property cannot be changed in runtime.
Zoom = Entities.Zoom.Auto
ROU-4665 - A new parameter called RespectUserZoom has been added to the OptionalConfigs structure of the Map and LeafletMap blocks.This parameter allows developers to signal whether user zoom changes should be respected when adding, changing, or removing other markers.
ROU-4708 - Created new client actions called AddMarker / RemoveAllMarkers / RemoveMarker / SubscribeMarkerEvent / UnsubscribeMarkerEvent to create, remove and subscribe/unsubscribe events from Markers.These will help deal with a large number of markers for better runtime performance.
Fixed Issues and Improvements
ROU-4708 - Improved the way a Map is obtained by its widget identifier.
ROU-4709 - Fixed an issue that caused the OutSystems Maps to write a warning on the console.This occurred when we used marker clusters since 'google.maps.event.addDomListener()' was deprecated.The 'js-markerclusterer' library was upgraded to version 2.5.3, changing how clusters are created.
google.maps.event.addDomListener()
js-markerclusterer
⚠ This new OutSystems Maps version introduces breaking changes.
ROU-4469 - Deprecated the AdvancedFormat parameter from the structure OptionalStaticMapConfigs, used in the StaticMap block.To be compliant with Content Security Policy (CSP) requirements, the usage of the eval() function will be discontinued so, consequently, this parameter will be impacted and may not function as expected.
ROU-4591 - The mechanism to translate addresses into coordinates was changed. Prior the code was using an external Google REST API, while now, it uses the available method in Google SDK (geo.geocode).
geo.geocode
ROU-4592 - Fixed an issue that caused the wrong popup to open when clicking on a marker.This occurred when a custom icon and the size (width and height) were set into a MarkerPopup, especially with many Markers on the screen.
Fixed Issues and Improvements:
ROU-4222 - Fixed an issue that caused the Draw Shape AddOns to return the Coordinates and Location parameters empty on the OnDrawingChange event.This occurred when a client action was associated with the DrawingTools' OnDrawingChange event and a shape was modified (dragged or resized) after its creation.
ROU-4283 - Fixed an issue that caused the Draw Markers to not return the right coordinates after an OnDrawingChange event.This occurred when a Draw Marker was configured to allow drag and the OnDrawingChange event was configured to return the coordinates.
ROU-4361 - Now, the Map’s preview images were optimised in order to reduce the module size.
ROU-4370 - Fixed an issue that caused the Map_Initialized event not to run after the first time a Map was created.This occurred when leaving a screen with a Map block (Google Maps) and returning to it afterwards.