Fixing distance calc
This commit is contained in:
parent
890659a771
commit
32329bcce4
@ -454,7 +454,8 @@
|
||||
}
|
||||
|
||||
function modeClick(event, x, y) {
|
||||
alert('mode clicked');
|
||||
var mode = _data.mode === 'prod' ? 'dist' : 'prod';
|
||||
updateState(_data.value, mode);
|
||||
}
|
||||
|
||||
this.update = function(data, scale) {
|
||||
|
2
types.go
2
types.go
@ -50,7 +50,7 @@ type jsonQueryRequest struct {
|
||||
Geo *jsonGeoData `json:"geo"`
|
||||
MaxResults int `json:"maxResults"`
|
||||
MinScore float64 `json:"minScore"`
|
||||
Modes map[string]string `json:"modeMap"`
|
||||
Modes map[string]string `json:"modes"`
|
||||
Profile featureMap `json:"profile"`
|
||||
Resolution int `json:"resolution"`
|
||||
SortAsc bool `json:"sortAsc"`
|
||||
|
Loading…
Reference in New Issue
Block a user