function UserPoint(C,B,A){this.latlng=C;this.data=B;this.userident=A;this.marker=null;this.hide=function(){this.marker.hide()};this.show=function(){map.setCenter(this.latlng)};this.remove=function(){this.marker.setMap(null)};this.getHtml=function(){var D="";D+="<b>"+this.data.roadName+" "+this.data.roadNumber+"</b><br />";
D+=this.data.roadZip+" "+this.data.roadMunicipality+"<br>";D+="<a href=\"javascript:setRoutePointFrom('"+this.latlng.lat()+"','"+this.latlng.lng()+"')\">";D+='<img src="images/start_hex.png" style="border:0px; margin-right:3px;" title="Διαδρομή από" alt="Διαδρομή από" />';D+="</a>";D+="<a href=\"javascript:setRoutePointTo('"+this.latlng.lat()+"','"+this.latlng.lng()+"')\">";
D+='<img src="images/stop_hex.png" style="border:0px; margin-right:3px;" title="Διαδρομή έως" alt="Διαδρομή έως" />';return D};this.getText=function(){var E="<b>Είμαι Εδώ: </b>";var D=trim(this.data.roadNumber);E+=this.data.roadName;if(D.length>0){E+=" "+D}E+=", ";E+=this.data.roadMunicipality;return E
};this.getType=function(){return ELTYPE_USERPOINT};this.getIdent=function(){return this.userident};this.equals=function(D){if(D.getType()==this.getType()){if((this.latlng.lat()==D.latlng.lat())&&(this.latlng.lng()==D.latlng.lng())){return true}}return false};this.init=function(){show_td(0);map.setCenter(this.latlng);
var D=new google.maps.Marker({position:this.latlng,map:map,icon:iconPerCategoryId[SELECTED_ICON],title:this.data.roadName});this.marker=D;google.maps.event.addListener(D,"click",function(){showSelectedPoints()})};this.getAttributes=function(){return["vertex"]}};
