Changes between Version 59 and Version 60 of FrequentlyAskedQuestions

Show
Ignore:
Timestamp:
05/15/08 02:37:19 (5 years ago)
Author:
openlayers
Comment:

Added "Markers" section, and question about markers not showing at all zoom levels

Legend:

Unmodified
Added
Removed
Modified
  • FrequentlyAskedQuestions

    v59 v60  
    369369right location, or your webserver is not configured correctly. 
    370370 
    371  
    372  
    373 [wiki:FrequentlyAskedQuestions# Back to Top] 
    374 ---- 
    375 [[BR]] 
    376 = Misc = 
    377  
    378 == How do I set up !OpenLayers to run with !TileCache? == 
    379  
    380 The !TileCache distribution includes an HTML example, index.html, which shows how to use it with OpenLayers. Assuming that your bbox and resolutions array are the defaults, it should be really simple -- when they're not anymore, things get a bit more difficult. 
     371[wiki:FrequentlyAskedQuestions# Back to Top] 
     372---- 
     373 
     374= Markers = 
    381375 
    382376== Why is My Map Sluggish when I Add 500 Markers? == 
     
    385379yourself to under 500 markers (Firefox) or 50 markers (IE6). 
    386380 
    387 == How Do I Build a Single-File Version of !OpenLayers? == 
    388  
    389 See [wiki:Profiles] 
    390  
     381== Why don't my markers appear at certain zoom levels? == 
     382 
     383The problem is that your markers layer is considered 'out of range' for some reason. The source of the problem is probably to do with the "resolutions" setting on the base layer. One fix is to override the calculateInRange function to always return true, eg: 
     384 
     385{{{ 
     386//Original 
     387Markers = new OpenLayers.Layer.Markers("Markers"); 
     388 
     389//override the calculateInRange function to always return true 
     390Markers = new OpenLayers.Layer.Markers("Markers", {'calculateInRange': function() { return true; }}); 
     391}}} 
     392 
     393Also see [http://www.nabble.com/Marker-Disappearing-to11325890.html#a11325890 this mailing list thread], particularly [http://www.nabble.com/Re%3A-Marker-Disappearing-p11326684.html this post] 
    391394 
    392395[wiki:FrequentlyAskedQuestions# Back to Top] 
     
    432435 
    433436* If you have different or more complete (browser-specific, precise figures, etc.) data, please insert it here! 
     437 
     438[wiki:FrequentlyAskedQuestions# Back to Top] 
     439 
     440---- 
     441= Misc = 
     442 
     443== How do I set up !OpenLayers to run with !TileCache? == 
     444 
     445The !TileCache distribution includes an HTML example, index.html, which shows how to use it with OpenLayers. Assuming that your bbox and resolutions array are the defaults, it should be really simple -- when they're not anymore, things get a bit more difficult. 
     446 
     447== How Do I Build a Single-File Version of !OpenLayers? == 
     448 
     449See [wiki:Profiles]