Releases: ServiceMax-Engineering/px-map
Releases · ServiceMax-Engineering/px-map
v3.10.1 Remove object rest spread
Object rest spread is not supported in predix library. It needs to be removed
v3.10.0 Add customPopup key to layer geojson to allow custom popup
- Add content property to
px-map-popup-info
- Add
customPopup
key to layer geojson to allow custom popup. Seedemo/px-map-layer-geojson-data.json
.
v3.9.0 Add route highlight when user clicks on a particular route
- Add route highlight when user clicks on a particular route
v3.8.0 Add margin property to popup data and popup info.
Add margin
(string) property to popup data and popup info. It can be either px
or %
based.
Extend px-map-marker-group component to support numbered marker
- Re-defined structure to support rendering numbered marker:
"marker-icon": {
"icon-base": "custom-icon",
"icon-type": "px-nav:unconfirmed", //also component defaults to px-nav:unconfirmed
"icon-strokeColor": "blue",
"icon-fillColor": "white",
"icon-content": "1", //"icon-content": "px-nav:home" for icon marker
"icon-options": { //currently it doesn't work, will be taken after/or part of UI-2363
"strokeColor": "blue",
"fillColor": "white",
}
}
- Icon-options is only valid when an "icon-content": "px-nav:home" and not a number.
- Enhanced demo to illustrate the number markers with marker group.
- Updated release notes.
- Reference demo screenshots.
UI-2183 Popup info support html
Add custom html support to px-map-popup-info
.
Web component:
<px-map-popup-info>
<h3>Custom Header</h3>
<span>custom content custom content custom content custom content </span>
</px-map-popup-info>
React (ui-components-predix):
<MapPopupInfo>
<h3>Custom Header</h3>
<span>custom content custom content custom content custom content </span>
</MapPopupInfo>
NOTE:
If title
OR description
is provided, the children will be ignored.
<MapPopupInfo title="my-title">
<p>custom content</p> // this will be ignored
</MapPopupInfo>
v3.5.2: MapMarkerCustom and FitToMarkers Bug fixes
Changes included in this release
UI-2240: Support to show numbered markers and home markers on map #3
- Support to show numbered markers and home markers on map
UI-1205 fit-to-markers attribute of px-map does not work #4
- Fix for leaflet getBoundsZoom & fitBounds with nozero padding does not work properly with a top down CRS.
v3.5.1: Merge pull request #2 from hanzge/popup-width-config
Fix popup-data bug