Permalink
Browse files

Stop using `renderTemplate` method in the examples.

  • Loading branch information...
1 parent 99063f9 commit 0d6013d7c55192b0705da1e1279296a811b4c0ba @jorix committed Dec 25, 2012
Showing with 8 additions and 11 deletions.
  1. +8 −11 examples/feature-popups-plus.js
@@ -56,13 +56,12 @@ var fpControl = new OpenLayers.Control.FeaturePopups({
);
}
}
- html.push(layerObj.renderTemplate(
- layerObj.templates.list, {
+ html.push(layerObj.applyTemplate.list({
layer: sel.layer,
count: sel.features.length,
html: htmlAux.join('\n')
- }
- ));
+ })
+ );
}
if (count === 1) {
layerObj0.control.popupObjs.single.showPopup({
@@ -95,13 +94,11 @@ var fpControl = new OpenLayers.Control.FeaturePopups({
);
}
}
- e.html = layerObj.renderTemplate(
- layerObj.templates.hoverList, {
- layer: sel.layer,
- count: sel.features.length,
- html: htmlAux.join('\n')
- }
- );
+ e.html = layerObj.applyTemplate.hoverList({
+ layer: sel.layer,
+ count: sel.features.length,
+ html: htmlAux.join('\n')
+ });
}
}},
layers: [

0 comments on commit 0d6013d

Please sign in to comment.