The place to get information and ask questions about everything to do with properly and successfully editing the Waze Map.

Use this forum for all general editing questions, and the sub-forums for specific types of Waze Map Editor features.

Post Reply

Adding Land Mark Points.

Post by rahulmaindargi
I am getting "Please select Landmark_point type" error on World Server.
I tried with all Land Mark types.
I am using chrome latest version.

is any one else facing this issue?

I will try with IE and fire fox and will update the results.
rahulmaindargi
Area Manager
Area Manager
Posts: 233

POSTER_ID:1648627

1

Send a message

Post by dmcconachie
rahulmaindargi wrote:I am getting "Please select Landmark_point type" error on World Server.
I tried with all Land Mark types.
I am using chrome latest version.

is any one else facing this issue?

I will try with IE and fire fox and will update the results.
I've had this error for months! And given support have said there will be no fixes to relatively minor faults on this version of cartouche I would just get used to it for the moment!
dmcconachie
Posts: 6119
Has thanked: 55 times
Been thanked: 181 times
Send a message
dmcconachie • Former Global Champ

UK WikiUK FB PageCurrent status


Post by rahulmaindargi
I tried to look into HTMl

Code: Select all

 <form>
                                    <input type="hidden" name="id">
                                    <input type="hidden" name="landmark_id">
                                    <input type="hidden" name="update_property" value="landmark_point">
                                    <table>
                                      <tbody>

					<!--                                                    <tr>
												<th>City:</th><td> <input type="text" name="city_name" maxlength="100"></input></td>
                                          </tr> -->
					<tr>
                                          <th>Type:</th>
                                          <td>
                                            <select name="type">
					      <optgroup label="Transportation">
						<option value="7">Entrance and Exit (vehicle)</option>
						<option value="8">Entrance and Exit (foot)</option>

						<option value="1">Entrance (vehicle)</option>
						<option value="2">Entrance (foot)</option>
						<option value="3">Exit (vehicle)</option>
						<option value="4">Exit (foot)</option>
					      </optgroup>
					      <optgroup label="Other">
						<option value="5">Observation point</option>

						<option value="6">Toll booth</option>
						<option value="9">ATM</option>
						<option value="10">W.C.</option>
					      </optgroup>
                                            </select>
                                          </td>
                                        </tr>

                                        <tr>
                                          <th>Name:</th><td><input type="text" name="name" maxlength="100"></td>
                                        </tr>
                                      </tbody>
                                    </table>
				    <!--                            <div class="checkContainer"><input type="checkbox" value="true" name="separator"></input> Separating Line</div> -->
<!--                            <div class="checkContainer"><input type="checkbox" value="true" name="locked"></input> Locked</div> -->
                           <div class="stats">
				<div id="user" class="stat">

				  User: <span><span></span> <a href="#"></a></span>
				</div>
				<div id="update_user" class="stat">Updated By: <span><a href="#"></a></span></div>
                           </div>
                    </form>
The java script code is

Code: Select all

artouche.prototype.saveEditLandmarkPointDetails = function(additionalParams, shouldExitEditPointDetails){
  	
    var tc = this;
    var upload_url = "/map_edit/update_landmark.php";
		
    var params = {separator:"false",locked:"false"};//init checkbox fields with false since otherwise they will not be sent when their value is false
    $.each($("#editPanel form").serializeArray(),function(){

	    if(this.name == "update_property")
		params["update_type"]=this.value;
	    else
		params[this.name]=this.value;
	});
		
	  
    //add additional params if any ...
    if(additionalParams)
	for(var key in additionalParams)
	    params[key] = additionalParams[key];
		
		
    this.requiresLogin(function(){

	    //        var type = feature_type_affected;
	    var url =upload_url;
			
	    $("#editPanel #applyFixIndicator").show();
	    $("#editPanel .contents").fadeTo(1, 0.3);
	    var saveResult = function(response){
		$("#editPanel .contents").fadeTo(0.3, 1);
		$("#editPanel #applyFixIndicator").hide();
		
		var json = eval("("+response+")");
		if(json.reply.error)
		    tc.displayEditPanelMessage(json.reply.message,is_error=true);
		else{
			
		    //                if (shouldExitEditPointDetails)
		    tc.exitEditLandmarkPointDetails(shouldExitEditPointDetails);
		    tc.redrawFeatureType("landmarks");
		    tc.deselectAll();    
			
		    tc.displayEditPanelMessage(json.reply.message,is_error=false);
		}
	    }

	    $.get( url, params,saveResult );
	},revert_to_previous_contents=true);
};
After looking it I found, just changing the form Id to "editPanel" should fix the issue.
rahulmaindargi
Area Manager
Area Manager
Posts: 233
Send a message

Post by rahulmaindargi
VanillaG wrote:And obviously that was not it..
Care to explain, please?
sorry for delayed response
the javascript uses this...

Code: Select all


 $.each($("#editPanel form")
so i believe changing

Code: Select all

<form>

to

Code: Select all

<form id="editPanel">


should fix the issue.
please let me know your thoughts.

sorry for delayed response again.
rahulmaindargi
Area Manager
Area Manager
Posts: 233
Send a message

Post by VanillaG
Thanks for looking into this..
So, whereas:

<form>
<input type="hidden" name="id">

I change "id" to "editPanel" ?
VanillaG
Posts: 3
Send a message

Post by VanillaG
And obviously that was not it..
Care to explain, please?
VanillaG
Posts: 3
Send a message

Post by VanillaG
Thank you for the explanation!..
but it did not work for me, however..
Or, maybe I need to try again - will do that in next few days..
VanillaG
Posts: 3
Send a message