Committing bug fixes made on the mapviewer in 2012 and 2013
[geo.git] / edit_wp5_web_folder / geo / mapviewer_copy / js_code2 / symbology_simple.js
index 61c71a3f67008d81884853ec5f6c90d6b3e8dd28..199d3c502fa502e1dafcc3b548cf41ef0eb945e1 100644 (file)
@@ -25,11 +25,11 @@ msie=($.browser.msie==true)?true:false;
 if (msie)\r
 {\r
 \r
- $('input.jqmdX').css('background','url(http://edit.africamuseum.be/edit_wp5/geo/mapviewer/img/close.gif)  no-repeat top left').css('width','15px');\r
+ $('input.jqmdX').css('background','url(http://taxonomicindex.africamuseum.be/edit_wp5/geo/mapviewer/img/close.gif)  no-repeat top left').css('width','15px');\r
 }\r
 else \r
 {\r
-$('input.jqmdX').css('background','url(http://edit.africamuseum.be/edit_wp5/geo/mapviewer/img/close.gif) no-repeat top left');\r
+$('input.jqmdX').css('background','url(http://taxonomicindex.africamuseum.be/edit_wp5/geo/mapviewer/img/close.gif) no-repeat top left');\r
 }\r
  \r
 \r
@@ -56,13 +56,13 @@ $('input.jqmdX').css('background','url(http://edit.africamuseum.be/edit_wp5/geo/
         \r
        $(to_start).click(function(){\r
        //      var genus_size=iframe.contents().find('#categorySelect option').size();\r
-    edit_points.params.SLD="http://edit.africamuseum.be/edit_wp5/geo/sld/temp/"+userid+"/120dpi/"+userid+".sld";\r
-$("iframe#info").attr('src','http://edit.africamuseum.be/edit_wp5/geo/formularis/select_by_genus.html?userid='+userid+'&p=pere_rock');\r
+    edit_points.params.SLD="http://taxonomicindex.africamuseum.be/edit_wp5/geo/sld/temp/"+userid+"/120dpi/"+userid+".sld";\r
+$("iframe#info").attr('src','http://taxonomicindex.africamuseum.be/edit_wp5/geo/formularis/select_by_genus.html?userid='+userid+'&p=pere_rock');\r
 \r
 \r
 edit_points.redraw();\r
 var image=document.getElementById("legend");\r
-       image.setAttribute("src",legend='http://193.190.223.46:8080/geoserver//wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=25&HEIGHT=20&LAYER=topp:test_csvimportgispoints2&sld='+edit_points.params.SLD);\r
+       image.setAttribute("src",legend='http://193.190.223.53:8080/geoserver//wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=25&HEIGHT=20&LAYER=topp:test_csvimportgispoints2&sld='+edit_points.params.SLD);\r
 $('div[id*="_form"]').hide();\r
 $("#send").hide();\r
 $("#informacio,#what_todo").hide();\r
@@ -314,8 +314,8 @@ var onLoad_events=function() {
      }\r
     var text='Data symbolization (click here and drag me)';\r
 \r
-//    var jq='<div class="jqmdTL" style="background-size: 40%; z-index: 300;"><div class="jqmdTR"><div class="jqmdTC jqDrag">'+text+'</div><input type="image" class="jqmdX jqmClose"/><iframe id="info" name="nom_iframe" class="jqDrag" marginWidth=0 marginHeight=0 src="http://edit.africamuseum.be/edit_wp5/edit_geo/prototype/formularis/select_formulari_sld.html" frameBorder=0 width=380 height=300; background-color=#D7DBDF"></iframe><div id="informacio">Now you can Select the symbology. Press the button only after you have chosen all possibilities!</div>    <div id="what_todo">You have previously symbolized your data. <br>Do you want to <a href="#">continue the symbolization</a></strong>(it will keep your previous changes) or <br><br><a href="#"><strong>start again</strong></a> (previous changes will be deleted)</div><div id="color_form"><a style="padding-right:20px;">Start again</a>     <a style="padding-right:20px;">Edit symbol</a><a style="padding-right:20px;">      Add new genus to symbolize</a></div><div id="symbol_form"><a>Edit size</a><div style="float:center;"><a>Back to edit color</a></div></div><div id="size_form"><a>Back to edit symbol</a></div><button id="send" value="symbolize it!">Symbolize it!</button>';\r
-  var jq='<div class="jqmdTL" style="background-size: 40%; z-index: 300;"><div class="jqmdTR"><div class="jqmdTC jqDrag">'+text+'<input type="image" class="jqmdX jqmClose"/></div></div><iframe id="info" name="nom_iframe" class="jqDrag" marginWidth=0 marginHeight=0  frameBorder=0 width=380 height=300; background-color=#D7DBDF" src="http://edit.africamuseum.be/edit_wp5/geo/formularis/select_by_genus.html?userid='+userid+'&p=pere_rock"></iframe><div id="informacio">Now you can Select the symbology. Press the button only after you have chosen all possibilities!</div>    <div id="what_todo">You have previously symbolized your data. <br>Do you want to <a href="#">continue the symbolization</a></strong>(it will keep your previous changes) or <br><br><a href="#"><strong>start again</strong></a> (previous changes will be deleted)</div><div id="color_form" style="display:block"><a style="padding-right:20px;">Start again</a>     <a style="padding-right:20px;">Edit symbol</a><a style="padding-right:20px;">      Add new genus to symbolize</a></div><div id="symbol_form" style="display:block"><a>Edit size</a><div style="float:center;"><a>Back to edit color</a></div></div><div id="size_form" style="display:block"><a>Back to edit symbol</a></div><button id="send" value="symbolize it!">Symbolize it!</button>';\r
+//    var jq='<div class="jqmdTL" style="background-size: 40%; z-index: 300;"><div class="jqmdTR"><div class="jqmdTC jqDrag">'+text+'</div><input type="image" class="jqmdX jqmClose"/><iframe id="info" name="nom_iframe" class="jqDrag" marginWidth=0 marginHeight=0 src="http://taxonomicindex.africamuseum.be/edit_wp5/edit_geo/prototype/formularis/select_formulari_sld.html" frameBorder=0 width=380 height=300; background-color=#D7DBDF"></iframe><div id="informacio">Now you can Select the symbology. Press the button only after you have chosen all possibilities!</div>    <div id="what_todo">You have previously symbolized your data. <br>Do you want to <a href="#">continue the symbolization</a></strong>(it will keep your previous changes) or <br><br><a href="#"><strong>start again</strong></a> (previous changes will be deleted)</div><div id="color_form"><a style="padding-right:20px;">Start again</a>     <a style="padding-right:20px;">Edit symbol</a><a style="padding-right:20px;">      Add new genus to symbolize</a></div><div id="symbol_form"><a>Edit size</a><div style="float:center;"><a>Back to edit color</a></div></div><div id="size_form"><a>Back to edit symbol</a></div><button id="send" value="symbolize it!">Symbolize it!</button>';\r
+  var jq='<div class="jqmdTL" style="background-size: 40%; z-index: 300;"><div class="jqmdTR"><div class="jqmdTC jqDrag">'+text+'<input type="image" class="jqmdX jqmClose"/></div></div><iframe id="info" name="nom_iframe" class="jqDrag" marginWidth=0 marginHeight=0  frameBorder=0 width=380 height=300; background-color=#D7DBDF" src="http://taxonomicindex.africamuseum.be/edit_wp5/geo/formularis/select_by_genus.html?userid='+userid+'&p=pere_rock"></iframe><div id="informacio">Now you can Select the symbology. Press the button only after you have chosen all possibilities!</div>    <div id="what_todo">You have previously symbolized your data. <br>Do you want to <a href="#">continue the symbolization</a></strong>(it will keep your previous changes) or <br><br><a href="#"><strong>start again</strong></a> (previous changes will be deleted)</div><div id="color_form" style="display:block"><a style="padding-right:20px;">Start again</a>     <a style="padding-right:20px;">Edit symbol</a><a style="padding-right:20px;">      Add new genus to symbolize</a></div><div id="symbol_form" style="display:block"><a>Edit size</a><div style="float:center;"><a>Back to edit color</a></div></div><div id="size_form" style="display:block"><a>Back to edit symbol</a></div><button id="send" value="symbolize it!">Symbolize it!</button>';\r
     $('#ex2').append(jq);\r
     //   $("#ex2").append('<div class="jqmdTC jqDrag" style="position:relative;top:50px">Data symbolization (click here and drag me)</div>');\r
     bindFrameActions();\r
@@ -447,10 +447,10 @@ var onLoad_events=function() {
                                                        });\r
 \r
                                                            var text = format.write(doc);\r
-                                               $.ajax({url:'http://edit.africamuseum.be/edit_wp5/geo/mapviewer/test_xmls2.php',\r
+                                               $.ajax({url:'http://taxonomicindex.africamuseum.be/edit_wp5/geo/mapviewer/test_xmls2.php',\r
                                                                processData:false, type:'POST',dataType:'text',data:'data='+text+'&user='+userid+"&sld="+edit_points.params.SLD,success:function(data){ edit_points.params.SLD=data;edit_points.redraw();\r
                                                                var image=document.getElementById("legend");\r
-                                                               image.setAttribute("src",legend='http://193.190.223.46:8080/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=25&HEIGHT=20&LAYER=topp:test_csvimportgispoints2&SLD='+data);\r
+                                                               image.setAttribute("src",legend='http://193.190.223.53:8080/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=25&HEIGHT=20&LAYER=topp:test_csvimportgispoints2&SLD='+data);\r
                                                                }});\r
                }\r
        }\r