Commit bad223082f8d6d4ba8d8e6d8b0a97cc0cf87ebfc

  • avatar
  • arvind
  • Wed Jun 13 10:07:36 IST 2012
Reverting the last commit, adding new style to the map
myVector.js
(14 / 12)
  
131131 drawControls['select'].activate();
132132 addLabel('3759.0000','-1274.33337','Face');
133133 addLabel('3719','-1771','Jewelery');
134 addLabel('4263.0000','-1630.33337', 'Video')
134 addLabel('4263.0000','-1345.33337', 'Video')
135135 map.addControl(new OpenLayers.Control.PanZoomBar());
136136 map.addControl(new OpenLayers.Control.MousePosition());
137137 map.addControl(new OpenLayers.Control.MouseDefaults());
138138 map.addControl(new OpenLayers.Control.KeyboardDefaults());
139 map.addControl(new OpenLayers.Control.LayerSwitcher());
139140 map.zoomToExtent( mapBounds );
140141 document.getElementById('noneToggle').checked = true;
141142}
147147
148148 vectorLayer = new OpenLayers.Layer.Vector("Simple Geometry", {
149149 styleMap: new OpenLayers.StyleMap({'default':{
150 strokeColor: "#00FF00",
150 strokeColor: "#000",
151151 strokeOpacity: 1,
152152 strokeWidth: 3,
153 fillColor: "#FF5500",
154 fillOpacity: 0.5,
155 pointRadius: 6,
153 fillColor: "#FFF",
154 fillOpacity: 1,
155 pointRadius: 2,
156156 pointerEvents: "visiblePainted",
157157 // label with \n linebreaks
158158 label : "${name}\n",
159159//\nage: ${age}",
160160
161 fontColor: "${favColor}",
161 fontColor: "#000",
162162 fontSize: "16px",
163 fontFamily: "Courier New, monospace",
163 fontFamily: "Georgia, Serif",
164164 fontWeight: "bold",
165165 labelAlign: "${align}",
166166 labelXOffset: "${xOffset}",
167167 labelYOffset: "${yOffset}",
168168 labelOutlineColor: "white",
169 labelOutlineWidth: 3
169 labelOutlineWidth: 3,
170 border: "#000"
170171 }}),
171172 renderers: renderer
172173 });
193193
194194 vectorLayer = new OpenLayers.Layer.Vector("Simple Geometry", {
195195 styleMap: new OpenLayers.StyleMap({'default':{
196 strokeColor: "#00FF00",
196 strokeColor: "#000",
197197 strokeOpacity: 1,
198198 strokeWidth: 3,
199199 fillColor: "#FF5500",
200200 fillOpacity: 0.5,
201 pointRadius: 6,
201 pointRadius: 2,
202202 pointerEvents: "visiblePainted",
203203 // label with \n linebreaks
204204 label : "${name}\n",
205205//\nage: ${age}",
206206
207 fontColor: "${favColor}",
207 fontColor: "#000",
208208 fontSize: "16px",
209 fontFamily: "Courier New, monospace",
209 fontFamily: "Georgia, Serif",
210210 fontWeight: "bold",
211211 labelAlign: "${align}",
212212 labelXOffset: "${xOffset}",
  
4242 attribs["character"] = $("#character-value").text();
4343 attribs["material"] = $("#material-value").text();
4444 myJSON.push(attribs);
45 $("#publish").attr("disbaled", false);
4546 }
4647 </script>
4748 </head>
7070 <label for="boxToggle">Tag this</label>
7171 </li>
7272 </ul>
73 <input type="button" id="publish" value="publish" onClick="publish();" disabled="true"/>
7374 </div>
7475 <script type="text/javascript" >resize()</script>
7576 <div id="annotation-tree">
7677 <input type="button" value="close" onClick="treeClose();"/>
77 <input type="button" value="publish" onClick="publish();"/>
7878 <div id="infovis">
7979 <form>
8080 <div>Character: <span id="character-value"></span></div>