Releases: predixdesignsystem/px-map
Releases · predixdesignsystem/px-map
v3.7.0
v3.6.1
Bug fixes
- Fixed
px-map-marker-group
not updating when its data prop is updated with an empty features collection - Tweaked
px-map-control-scale
font-size so that it always fits within the scale element. Font-size can be configured with--px-map-scale-font-size
CSS variable.
v3.6.0 Zoom clamping, bug fixes
New features:
- Map will now clamp internal
minZoom
andmaxZoom
values based on the supported bounds of all children layers. This new behaviour can be suppressed by setting theunclamp-zoom-to-layers
property on the px-map component
Bug fixes
- Fixed regression in feature properties popup width from
px-map-layer-geojson
component - Fixed
fit-to-markers
prop not applying the correct zoom level when there's greater than 1 marker in map viewport
v3.5.1: Resolved popup width regression
Bug fixes
- Fixed regression in popup width when defined in the properties of a
px-map-marker-group
component
v3.5.0: Configurable popup dimensions, disabled zoom button styling
New features:
- Added
maxWidth
(Defaults to 400) andminWidth
(Defaults to 300) properties to
px-map-popup-info and px-map-popup-data. They are used to manually set max and
min width of the popup container. (thanks @hanzge)
Bug fixes
- Fixed missing disabled styling on control zoom buttons (thanks @hannav95)
Polymer 1.x/2.x hybrid element support
v3.1.0 v3.1.0
Dynamic colors
This is a major release and includes new features and breaking changes.
Important breaking changes
- The px-map code is written in ES6 format, and in previous versions the code
was shipped in transpiled format in thedist/
directory. This built code has
been deleted. If you were relying on it you should switch over to use the
px-map/px-map-*.html
files directly instead ofpx-map/dist/px-map-*.html
.
If you need to transpile the px-map code for older browsers, you should do so
as part of your app's build process. See the Transpile ES6 guide on the
Predix Design System website
for guidance on how to implement this in your build system.
New features
- All px-map marker colors can now be set in a fully dynamic, customizable way.
This allows developers to set up to 100 custom colors for markers, which is
especially valuable for marker group visualizations with custom asset types.
See the documentation in px-map-marker-* documentation pages for more info
on using this new feature.
Design Refresh
- update colors and icons for design refresh
- update all icons to take svg icons instead of icon fonts
Add tile service information and attribution
- Document choices for production tile services, add specific info on restrictions of OpenStreetMap tile service.
- Add attribution for OpenStreetMap tile service to demos.
Add events to px-map-marker-group (#80)
New features
- Adds tap events to
px-map-marker-group
that fire when clusters or any
individual marker inside a cluster is tapped