Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2233

Přidáno uživatelem David Raška před asi 11 roky(ů)

Opravy:
- Oprava zobrazeni mapy v popup dialogu adresniho bodu
- Oprava obnoveni mapy pri vymene adres pripojneho mista a trvaleho bydliste

Zobrazit rozdíly:

freenetis/branches/1.1/application/views/address_points/show.php
</table>
<?php if (!empty($gps)): ?>
<a class="gmap" href="http://maps.google.com/maps?f=q&hl=<?php echo $lang ?>&geocode=&q=<?php echo $gpsx ?>,<?php echo $gpsy ?>&z=18&t=h&ie=UTF8" target="_blank">
<img alt="<?php echo __('Address point detail') ?>" src="http://maps.google.com/maps/api/staticmap?center=<?php echo $gpsx ?>,<?php echo $gpsy ?>&zoom=16&maptype=hybrid&size=400x300&markers=color:red%7C<?php echo $gpsx ?>,<?php echo $gpsy ?>&language<?php echo $lang ?>&sensor=false" style="float: right; margin-right: 10px;" />
</a>
<div id="ap_map" style="float: <?php echo ($this->popup ? 'left' : 'right');?>">
<a class="gmap" href="http://maps.google.com/maps?f=q&hl=<?php echo $lang ?>&geocode=&q=<?php echo $gpsx ?>,<?php echo $gpsy ?>&z=18&t=h&ie=UTF8" target="_blank">
<img alt="<?php echo __('Address point detail') ?>" src="http://maps.google.com/maps/api/staticmap?center=<?php echo $gpsx ?>,<?php echo $gpsy ?>&zoom=16&maptype=hybrid&size=400x300&markers=color:red%7C<?php echo $gpsx ?>,<?php echo $gpsy ?>&language<?php echo $lang ?>&sensor=false"/>
</a>
</div>
<div style="margin-bottom: 10px; float:left"></div>
<?php endif; ?>
freenetis/branches/1.1/application/views/js/__pieces/address_point_database.php
if ($('#gpsy').length)
{
$('#gpsy').after('<div id="ap_map"><div class="no_map"></div></div>');
$('#gpsy').after('<div id="ap_map"><div class="ap_form_map_container no_map"></div></div>');
}
if ($('#domicile_gpsy').length)
{
$('#domicile_gpsy').after('<div id="domicile_ap_map"><div class="no_map"></div></div>');
$('#domicile_gpsy').after('<div id="domicile_ap_map"><div class="ap_form_map_container no_map"></div></div>');
}
});
freenetis/branches/1.1/application/views/js/__pieces/domicile.php
$("#domicile_street_number").trigger('change');
$("#street").val(domicile_street);
$("#street").trigger('change');
$("#domicile_street").val(street);
$("#domicile_street").trigger('change');
$("#zip").val(domicile_zip);
$("#domicile_zip").val(zip);
freenetis/branches/1.1/application/views/js/__pieces/whisperer_gps.php
// show on map
if ($("#ap_map").length)
{
$('#ap_map').html('<div class="no_map"></div>');
$('#ap_map').html('<div class="ap_form_map_container no_map"></div>');
var width = $('#ap_map .no_map').width();
var height = $('#ap_map .no_map').height();
var map = '<img src="http://maps.google.com/maps/api/staticmap?center='+s[0]+','+s[1]+'&zoom=13&maptype=normal&size='+width+'x'+height+'&markers=color:red%7C'+s[0]+','+s[1]+'&language<?php echo Config::get('lang')?>&sensor=false"></img>';
map = '<div><a href="http://maps.google.com/maps?f=q&hl=<?php echo Config::get('lang') ?>&geocode=&q='+s[0]+','+s[1]+'&z=18&t=h&ie=UTF8" target="_blank">'+map+'</a></div>';
map = '<div class="ap_form_map_container"><a href="http://maps.google.com/maps?f=q&hl=<?php echo Config::get('lang') ?>&geocode=&q='+s[0]+','+s[1]+'&z=18&t=h&ie=UTF8" target="_blank">'+map+'</a></div>';
$("#ap_map").html(map);
map_add_zoom_buttons($("#ap_map a"), 6, 20);
}
......
{
$("#gpsx").val("");
$("#gpsy").val("");
$('#ap_map').html('<div class="no_map"></div>');
$('#ap_map').html('<div class="ap_form_map_container no_map"></div>');
}
gps_get = null;
......
// show on map
if ($("#domicile_ap_map").length)
{
$('#domicile_ap_map').html('<div class="no_map"></div>');
$('#domicile_ap_map').html('<div class="ap_form_map_container no_map"></div>');
var width = $('#domicile_ap_map .no_map').width();
var height = $('#domicile_ap_map .no_map').height();
var map = '<img src="http://maps.google.com/maps/api/staticmap?center='+s[0]+','+s[1]+'&zoom=13&maptype=normal&size='+width+'x'+height+'&markers=color:red%7C'+s[0]+','+s[1]+'&language<?php echo Config::get('lang')?>&sensor=false"></img>';
map = '<div><a href="http://maps.google.com/maps?f=q&hl=<?php echo Config::get('lang') ?>&geocode=&q='+s[0]+','+s[1]+'&z=18&t=h&ie=UTF8" target="_blank">'+map+'</a></div>';
map = '<div class="ap_form_map_container"><a href="http://maps.google.com/maps?f=q&hl=<?php echo Config::get('lang') ?>&geocode=&q='+s[0]+','+s[1]+'&z=18&t=h&ie=UTF8" target="_blank">'+map+'</a></div>';
$("#domicile_ap_map").html(map);
map_add_zoom_buttons($("#domicile_ap_map a"), 6, 20);
}
......
{
$("#domicile_gpsx").val("");
$("#domicile_gpsy").val("");
$('#domicile_ap_map').html('<div class="no_map"></div>');
$('#domicile_ap_map').html('<div class="ap_form_map_container no_map"></div>');
}
domicile_gps_get = null;
freenetis/branches/1.1/media/css/style.css
#ap_map,
#domicile_ap_map {
position: absolute;
position: relative;
}
#ap_map > div,
#domicile_ap_map > div {
.ap_form_map_container {
position: absolute;
bottom: 0px;
left: 210px;
......
height: 104px;
}
.gmap {
position: absolute;
right: 0;
}
div.map_zoom_in {
position: absolute;
left: 5px;

Také k dispozici: Unified diff