Skip to content

Commit

Permalink
New version 2.1.0 of Globe Map (#11)
Browse files Browse the repository at this point in the history
* Increase the resolution level of map
* Define initialResolutionLevel and change maxResolutionLevel
* Increase version
* Adjust size of bar automatically depending on zoom level
* Bars and heats have dynamic size, depends on the zoom level
* Building coordinates only by longitude and latitude fields
* Remove static type from GlobeSettings
  • Loading branch information
DimaNaumov authored and ignatvilesov committed Aug 24, 2017
1 parent 5192330 commit 46d4e2e
Show file tree
Hide file tree
Showing 8 changed files with 308 additions and 144 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.1.0
* Bars and heats have dynamic size, depends on the zoom level
* Building coordinates only by longitude and latitude fields

## 2.0.1
* Increase the resolution level of map

Expand Down
113 changes: 108 additions & 5 deletions capabilities.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dataRoles": [
{
"name": "Category",
"name": "Location",
"kind": "Grouping",
"displayName": "Location",
"displayNameKey": "Role_DisplayName_Location",
Expand Down Expand Up @@ -61,7 +61,7 @@
},
{
"name": "X",
"kind": "Measure",
"kind": "GroupingOrMeasure",
"displayName": "Longitude",
"description": "Used to override the longitude of locations",
"displayNameKey": "Role_DisplayName_Longitude",
Expand All @@ -75,7 +75,7 @@
},
{
"name": "Y",
"kind": "Measure",
"kind": "GroupingOrMeasure",
"displayName": "Latitude",
"description": "Used to override the latitude of locations",
"displayNameKey": "Role_DisplayName_Latitude",
Expand Down Expand Up @@ -104,12 +104,40 @@
{
"conditions": [
{
"Category": {
"Location": {
"min": 1,
"max": 1
},
"Series": {
"max": 1
},
"X": {
"max": 1
},
"Y": {
"max": 1
},
"Height": {
"max": 1
},
"Heat": {
"max": 1
}
},
{
"Location": {
"min": 1,
"max": 1
},
"Series": {
"max": 0
},
"X": {
"max": 1
},
"Y": {
"max": 1
},
"Height": {
"max": 1
},
Expand All @@ -121,7 +149,7 @@
"categorical": {
"categories": {
"for": {
"in": "Category"
"in": "Location"
},
"dataReductionAlgorithm": {
"top": {}
Expand Down Expand Up @@ -158,6 +186,81 @@
}
}
}
},
{
"conditions": [
{
"Location": {
"max": 0
},
"Series": {
"max": 0
},
"X": {
"max": 1
},
"Y": {
"max": 1
},
"Height": {
"max": 1
},
"Heat": {
"max": 1
}
},
{
"Location": {
"max": 0
},
"Series": {
"max": 1
},
"X": {
"max": 1
},
"Y": {
"max": 1
},
"Height": {
"max": 1
},
"Heat": {
"max": 1
}
}
],
"categorical": {
"categories": {
"select": [
{ "bind": { "to": "X" } },
{ "bind": { "to": "Y" } }
],
"dataReductionAlgorithm": {
"top": {}
}
},
"values": {
"group": {
"by": "Series",
"select": [
{
"bind": {
"to": "Height"
}
},
{
"bind": {
"to": "Heat"
}
}
],
"dataReductionAlgorithm": {
"top": {}
}
}
}
}
}
],
"objects": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "powerbi-visuals-globemap",
"description": "GlobeMap",
"version": "2.0.1",
"version": "2.1.0",
"author": {
"name": "Microsoft",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion pbiviz.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"displayName": "GlobeMap",
"guid": "GlobeMap1447669447625",
"visualClassName": "GlobeMap",
"version": "2.0.1",
"version": "2.1.0",
"description": "A 3D visual using WebGL for plotting locations, with category values displayed as bar heights and heat maps.\n\nShift+Click on bar to change center point. \nSlicing data points will animate to average location.\n\nAttributions:\nthree.js - https://github.com/mrdoob/three.js/\nwebgl-heatmap - https://github.com/pyalot/webgl-heatmap",
"supportUrl": "https://aka.ms/customvisualscommunity",
"gitHubUrl": "https://github.com/Microsoft/powerbi-visuals-globemap"
Expand Down
2 changes: 1 addition & 1 deletion src/columns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module powerbi.extensibility.visual {
(n, i) => g.values.filter(v => v.source.roles[i])[0]));
}

public Category: T = null;
public Location: T = null;
public Series: T = null;
public X: T = null;
public Y: T = null;
Expand Down
Loading

0 comments on commit 46d4e2e

Please sign in to comment.