Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. all_year_filter = new OpenLayers.Filter.Comparison({
  2. Type: ‘~’,
  3. property: ‘start_date’,
  4. value: ‘2014’
  5. });
  6.  
  7. all_filter_strategy = new OpenLayers.Strategy.Filter({filter: all_year_filter});
  8.  
  9. cluster_strategy = new OpenLayers.Strategy.Cluster({distance: 42, threshold: 2});
  10.  
  11. strategies: [all_filter_strategy, cluster_strategy],
  12. styleMap: mapVars.clusterStyleMap
  13.  
  14. labelFunction: function(feature){
  15. var count = feature.attributes.count;
  16. if (count > 0){
  17. return count;
  18. }
  19. }
  20.  
  21. "TypeError: feature.attributes.count is undefined."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement