Changeset 5341
- Timestamp:
- 12/04/07 09:44:19 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/camptocamp/vectorSymbols/examples/vector-symbols.html
r5285 r5341 21 21 map.addLayer(layer); 22 22 23 var options = {catalogueUrl: "symbol_catalog.svg"}; 23 var options = { 24 rendererOptions: { 25 catalogueUrl: "symbol_catalog.svg" 26 } 27 }; 24 28 var vectorLayer = new OpenLayers.Layer.Vector("Simple Geometry",options); 25 29 sandbox/camptocamp/vectorSymbols/lib/OpenLayers/Layer/Vector.js
r5337 r5341 91 91 */ 92 92 drawn: false, 93 94 /** 95 * Property: catalogueUrl 96 * {String} URL of the symbols catalogue to load. If no URL is specified, 97 * symbols catalogue won't be loaded 98 */ 99 catalogueUrl: null, 93 94 /** 95 * APIProperty: rendererOptions 96 * {Object} Used to set a catalogueUrl to renderer 97 */ 98 rendererOptions: null, 100 99 101 100 /** … … 120 119 // allow user-set renderer, otherwise assign one 121 120 if (!this.renderer || !this.renderer.supported()) { 122 this.assignRenderer( options);121 this.assignRenderer(this.rendererOptions); 123 122 } 124 123 sandbox/camptocamp/vectorSymbols/lib/OpenLayers/Renderer.js
r5167 r5341 52 52 map: null, 53 53 54 /** 55 * Property: catalogueUrl 56 * {String} URL of the symbols catalogue to load. If no URL is specified, 57 * symbols catalogue won't be loaded 58 */ 59 catalogueUrl: null, 60 54 61 /** 55 62 * Constructor: OpenLayers.Renderer
