Changes in calculations of local coordinates for locations. Changes in display of lexem symbols and location names on the map.

This commit is contained in:
Alenka 2017-08-21 21:30:02 +02:00
parent c9b5700f50
commit b4823c5f95
2 changed files with 12 additions and 12 deletions

View File

@ -192,18 +192,18 @@ Class Home_model extends CI_Model {
{
//init
//corners min, max in geo
$min_lat=46.979446;
$min_long=13.138383;
$max_lat=45.395345;
$max_long=16.698977;
$min_lat=46.980904;
$min_long=13.113429;
$max_lat=45.389575;
$max_long=16.674917;
//height,width of canvas
$height=719.964;
$width=1111.625;
$height=720;
$width=1100;
//error
$height_err=10;
$width_err=10;
$height_err=0;
$width_err=0;
//calculate pixes per degree
$ppd_height=number_format($height/($min_lat-$max_lat),6);

View File

@ -228,18 +228,18 @@ Slovenski narečni atlas / Slovenian dialectal atlas
if(transcription.id)
{
g.append("text").attr('id','text-'+transcription.pin).attr("x","-5px").attr("y","0px").attr("font-size","18pt").attr('class','SIMBola').style("fill", transcription.icon_color).text(transcription.pin);
g.append("text").attr('id','text-'+transcription.pin).attr("x","-5px").attr("y","6px").attr("font-size","18pt").attr('class','SIMBola').style("fill", transcription.icon_color).text(transcription.pin);
}
else
{
g.append("text").attr('id','text-'+transcription.pin).attr("x","-5px").attr("y","0px").attr("font-size","18pt").text("/");
g.append("text").attr('id','text-'+transcription.pin).attr("x","-5px").attr("y","6px").attr("font-size","18pt").text("/");
}
var element = d3.select('#text-'+transcription.pin).node();
var width = element.getBoundingClientRect().width;
g.append("text").attr("x",width+3+"px").attr("y","-2px").attr("font-size","12pt").text(transcription.short_name);
g.append("text").attr("x",width+3+"px").attr("y","4px").attr("font-size","12pt").text(transcription.short_name);
// Create an SVG <use> element
var use = document.createElementNS(svgNS, "use");