Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1143 → Rev 1144

/trunk/jrest/lib/CartoGroupage.php
191,10 → 191,13
}
if(self::coordonneesSontNulles($point) || self::estSensible($point)) {
$point['id'] = self::MARQUEUR_COMMUNE.':'.$point['wgs84_latitude'].'|'.$point['wgs84_longitude'];
$point['type_emplacement'] = 'communes';
$point['lat'] = (float)$point['wgs84_latitude'];
$point['lng'] = (float)$point['wgs84_longitude'];
$point_allege = array();
$point_allege['id'] = self::MARQUEUR_COMMUNE.':'.$point['wgs84_latitude'].'|'.$point['wgs84_longitude'];
$point_allege['type_emplacement'] = 'communes';
$point_allege['lat'] = (float)$point['wgs84_latitude'];
$point_allege['lng'] = (float)$point['wgs84_longitude'];
$point = $point_allege;
} else {
$point_allege = array();
$point_allege['id'] = self::MARQUEUR_STATION.':'.$point['coord_x'].'|'.$point['coord_y'];