Home
last modified time | relevance | path

Searched refs:lon (Results 1 – 25 of 34) sorted by relevance

12

/plugin/structgeohash/
H A Dgeohash.js47 var lat = []; var lon = [];
49 lon[0] = -180.0; lon[1] = 180.0;
59 refine_interval(lon, cd, mask);
68 lon[2] = (lon[0] + lon[1])/2;
70 return { latitude: lat, longitude: lon};
76 var lat = []; var lon = [];
83 lon[0] = -180.0; lon[1] = 180.0;
87 mid = (lon[0] + lon[1]) / 2;
90 lon[0] = mid;
92 lon[1] = mid;
/plugin/geotag/syntax/
H A Dgeotag.php75 preg_match("(lon[:|=]-?\d*\.\d*)", $tags, $lon);
103 hsc(trim(substr($lon [0], 4))),
105 $this->geohash(substr($lat [0], 4), substr($lon [0], 4)),
116 * Calculate the geohash for this lat/lon pair.
119 * @param float $lon
121 private function geohash(float $lat, float $lon)
127 return (new Point($lon, $lat))->out('geohash');
139 [$lat, $lon, $alt, $geohash, $region, $placename, $country, $showlocation, $style] = $data;
141 $ddlon = $lon;
115 geohash($lat, $lon) global() argument
[all...]
/plugin/schedule/syntax/
H A Ddisplay.php87 list ($insee, $lat, $lon, $addr) = explode ("|", $line);
89 if (!$insee || !$lon) {
94 if ($insee && $lat && $lon)
96 ' <li lat="'.$lat.'" lon="'.$lon.'">'.$insee.'</li>'.NL;
103 (($addr && $lat && $lon) ?
104 … '<span style="font-size:50%; background-color:#DDD;">(Lat. : '.$lat.' Long. : '.$lon.')</span>' :
107 … '<div class="scheduleAddresse wrap_left plugin_wrap" location="('.$lat.'|'.$lon.')">'.NL.
108 …' <p onMouseOver="javascript:scheduleHighlightLocation (\'('.$lat.'|'.$lon.')\')" onMouseOut="java…
/plugin/geophp/vendor/funiq/geophp/src/Adapter/
H A DGoogleGeocode.php36 * Makes a geocoding (lat/lon lookup) with an address string or array geometry objects
127 $lon = $centroid->x();
131 $url .= '?latlng=' . $lat . ',' . $lon;
168 $lon = $this->result->results[$delta]->geometry->location->lng;
169 return new Point($lon, $lat);
188 $lon = $this->result->results[$delta]->geometry->bounds->southwest->lng;
189 return new Point($lon, $lat);
195 $lon = $this->result->results[$delta]->geometry->bounds->northeast->lng;
196 return new Point($lon, $lat);
202 $lon
[all...]
H A DGeoRSS.php114 $lon = is_numeric($item) ? $item : NAN;
115 $coordinates[] = new Point($lon, $lat);
H A DOSM.php79 $lon = $node->attributes->getNamedItem('lon')->nodeValue;
90 'point' => new Point($lon, $lat),
423 $osm .= " <node id='{$node['id']}' visible='true' lat='$latlon[0]' lon='$latlon[1]' />\n";
H A DGPX.php160 $lon = $node->attributes->getNamedItem("lon")->nodeValue;
166 $point = new Point($lon, $lat, $elevation);
294 if ($attribute->name !== 'lat' && $attribute->name !== 'lon' && trim($attribute->value) !== '') {
372 $node = $indent . "<" . $this->nss . $tag . " lat=\"" . $geom->getY() . "\" lon=\"" . $geom->getX() . "\">\n";
383 return $indent . "<" . $this->nss . $tag . " lat=\"" . $geom->getY() . "\" lon=\"" . $geom->getX() . "\" />\n";
/plugin/openlayersmap/syntax/
H A Dolmap.php35 private $dflt = ['id' => 'olmap', 'width' => '550px', 'height' => '450px', 'lat' => 50.0, 'lon' => 5.1, 'zoom' => 12, 'autozoom' => 1, 'controls' => true, 'baselyr' => 'OpenStreetMap', 'gpxfile' => '', 'kmlfile' => '', 'geojsonfile' => '', 'summary' => ''];
91 // get the lat/lon for adding them to the metadata (used by geotag)
93 preg_match('(lon[:|=]\"-?\d*\.?\d*\")', $match, $mainLon);
100 $mainLon = $this->dflt ['lon'];
180 [$lat, $lon, $text, $angle, $opacity, $img] = $data;
182 $poi .= ", {lat:$lat,lon:$lon,txt:'$text',angle:$angle,opacity:$opacity,img:'$img',rowId: $rowId}";
186 $lon = $this->convertLon($lon);
189 $lon
668 calcBBOX(array $overlay, float $lat, float $lon) global() argument
[all...]
/plugin/geonav/js/
H A Dearth_a.js2 var lon; variable
67 … lookAt.set(parseFloat(lat), parseFloat(lon), 10, ge.ALTITUDE_RELATIVE_TO_GROUND, 0, 0,altitude);
86 lon=parseFloat(matchll[2]);
88 lon=lon.toFixed(6);}
91 console.log("x= "+lon);
92 … lookAt.set(parseFloat(lat), parseFloat(lon), 10, ge.ALTITUDE_RELATIVE_TO_GROUND,0, 0,6000000);
94 reverseGeocode(lat, lon, element.id);
/plugin/googlemaps/syntax/
H A Dgooglemap.php84 list($lat,$lon,$text) = $data;
85 $points .= ",{lat:$lat,lon:$lon,txt:'$text'}";
157 list($match,$lat,$lon,$text) = $pt;
160 $lon = is_numeric($lon) ? $lon : 0;
163 $overlay[] = array($lat,$lon,$text);
/plugin/geotag/
H A Daction.php58 $lon = $geotags ['lon'] ?? null;
76 if (!(empty ($lat) && empty ($lon))) {
80 'content' => $lat . ';' . $lon . ';' . $alt
85 'content' => $lat . ';' . $lon
95 if (!(empty ($lat) && empty ($lon))) {
98 'content' => $lat . ', ' . $lon
138 'close' => ', lon:7.521, alt: , placename: , country: , region: }}'
/plugin/schedule/lib/
H A DscheduleCitiesMap.js36 function scheduleGetLocation (lat, lon) { argument
39 parseFloat (parseFloat (lon).toFixed (schedulePrecision))+")";
106 location: scheduleGetLocation (lat, lon),
108 lon: lon,
156 var lon = "";
166 lon = inseeCityNameLatLon[cityCode][2];
176 (lat && lon) ?
177 ' lat="'+lat+'" lon="'+lon+'"' :
202 var lon = scheduleSelectedCity.attr ('lon');
207 line.push (lon);
[all …]
/plugin/osm/
H A Dsyntax.php128 list($match, $lat, $lon, $txt) = $pt;
131 $lon = is_numeric($lon) ? (float)$lon : 0;
H A Dscript.js51 …var pLonLat = new OpenLayers.LonLat(point.lon, point.lat).transform(new OpenLayers.Projection("EPS…
/plugin/openlayersmap/helper/
H A Dstaticmap.php44 return [['name' => 'getMap', 'desc' => 'returns url to the image', 'params' => ['lat' => 'float', 'lon' => 'float', 'zoom' => 'integer', 'size' => 'string', 'maptype' => 'string', 'markers' => 'string', 'gpx' => 'string', 'kml' => 'string', 'geojson' => 'string', 'apikey' => 'string'], 'return' => ['image' => 'string']]];
51 * @param float $lon the longitude of the map's center, eg -73.998672
55 * @param array $markers associative array of markers, array('lat'=>$lat,'lon'=>$lon,'type'=>$iconStyle),
56 * eg. array('lat'=>40.702147,'lon'=>-74.015794,'type'=>lightblue1);
64 float $lon,
103 $lon,
80 getMap(float $lat, float $lon, int $zoom, string $size, string $maptype, array $markers, string $gpx, string $kml, string $geojson, string $apikey = '') global() argument
/plugin/spatialhelper/helper/
H A Dsearch.php74 * @param float $lon
78 final public function findNearbyLatLon(float $lat, float $lon): array
80 $geometry = new Point($lon, $lat);
148 'lat' => $point->y(), 'lon' => $point->x()];
152 $point = new Point($geotags ['lon'], $geotags ['lat']);
161 'lat' => $geotags ['lat'], 'lon' => $geotags ['lon']];
179 'lon' => $decodedPoint->x(),
84 findNearbyLatLon(float $lat, float $lon) global() argument
H A Dindex.php111 if (empty($geotags ['lon']) || empty($geotags ['lat'])) {
115 $geometry = new Point($geotags ['lon'], $geotags ['lat']);
255 $lon = $this->convertDMStoD(
264 return new Point($lon, $lat);
/plugin/socialcards/
H A Daction.php194 $lon = $geotags['lon'] ?? 0;
195 if(!(empty($lat) && empty($lon))) {
202 'content' => $lon,
/plugin/googlemaps/
H A Dscript.js55 map.setCenter(new GLatLng(lat, lon), zoom);
64 map.addOverlay(create_marker(new GLatLng(overlay[j].lat,overlay[j].lon),overlay[j].txt));
/plugin/openlayersmap/
H A DStaticMap.php76 private $lon;
99 * @param float $lon
121 * Wheter or not to override zoom/lat/lon and zoom to the extent of gpx/kml and markers
126 float $lon,
142 $this->lon = $lon;
190 * Calculate the lat/lon/zoom values to make sure that all of the markers and gpx/kml are on the map.
199 $geoms [] = new Point($this->lon, $this->lat);
202 $geoms [] = new Point($marker ['lon'], $marker ['lat']);
257 $this->lon
147 private $lon; global() variable in dokuwiki\\plugin\\openlayersmap\\StaticMap
197 __construct(float $lat, float $lon, int $zoom, int $width, int $height, string $maptype, array $markers, string $gpx, string $kml, string $geojson, string $mediaDir, string $tileCacheBaseDir, bool $autoZoomExtent = true, string $apikey = '') global() argument
[all...]
H A Dscript.js61 * lat:6710200, lon:506500, zoom:13, controls:1,
65 * OLmapPOI array with POI's [ {lat:6710300,lon:506000,txt:'instap
102 center: ol.proj.transform([mapOpts.lon, mapOpts.lat], 'EPSG:4326', 'EPSG:3857'),
261 geometry: new ol.geom.Point(ol.proj.fromLonLat([p.lon, p.lat])),
266 lon: p.lon,
542 pContent += '<div class="coord" title="lat;lon">' +
546 + selFeature.get('lon') +
548 selFeature.get('lon') +
551 ol.coordinate.format([selFeature.get('lon'), selFeatur
[all...]
/plugin/spatialhelper/
H A Daction.php208 if ($INPUT->has('lat') && $INPUT->has('lon')) {
209 $results = $helper->findNearbyLatLon($INPUT->param('lat'), $INPUT->param('lon'));
254 $lon = (float)$searchresults ['lon'];
278 ' lat;lon: ' . $lat . ';' . $lon
302 ' lat;lon: ' . $lat . ';' . $lon
/plugin/schedule/
H A Dschedule.class.php23 var $lon; // event place latitude variable in schedule
H A Dschedules.class.php950 if ($event->lat && $event->lon) {
951 … foreach (array_combine (explode (',', $event->lat), explode (',', $event->lon)) as $lat => $lon) {
952 $location = '('.$lat.'|'.$lon.')';
974 if ($event->lat && $event->lon) {
975 … foreach (array_combine (explode (',', $event->lat), explode (',', $event->lon)) as $lat => $lon) {
976 $location = '('.$lat.'|'.$lon.')';
1162 $lons = explode (',', $schedule->lon);
1557 $lons = explode (',', $this->defaultSchedule->lon);
/plugin/openlayersmapoverlays/lib/
H A Dlayers.js59 …s.ratio;this.bounds=new OpenLayers.Bounds(center.lon-(dataWidth/2),center.lat-(dataHeight/2),cente…

12