Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Commit

Permalink
use jquery to get the id
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdstruijk committed Dec 6, 2018
1 parent 125f5c0 commit 7af4fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/objectInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ safetymaps.safetymapsCreator.renderSymbols = function (object, window, type) {
selectedFeature.attributes.temp = true;
safetymaps.safetymapsCreator.selectControl.unselect(selectedFeature);
}
var f = layer.getFeaturesByAttribute("index",/<id>(.*?)<\/id>/.exec(record.data[0])[1]);
var f = layer.getFeaturesByAttribute("index",$(record.data[0]).attr("id"));
if(f){
safetymaps.safetymapsCreator.selectControl.select(f[0]);
}
Expand Down

0 comments on commit 7af4fea

Please sign in to comment.