PageSourceSearch

https://www.ja-nishiinba.or.jp/wp-content/themes/ja-nishiinba/assets/common/js/lmap_embed.js

js ja-nishiinba.or.jp collected 2026-10-09 02:54:26 UTC 1,398 bytes, 57 lines download raw bytes

1// JavaScript Document
2
3var EmbedMap = function(id, lat, lng, opt){
4	'use strict';
5
6	var option = {
7		zoom : 17,
8		icon : "/map/img/icon_default.png",
9	};
10	if(opt != null)
11	{
12		$.extend(option, opt);
13	}
14
15	var gmap;
16
17	$(function(){
18
19		gmap = new L.map(id).setView([lat, lng], option.zoom - 1);
20		this.mapapi = "https://maps.gsi.go.jp/xyz/std/{z}/{x}/{y}.png";
21
22		$.ajax({
23			url: "https://map.ja-group.or.jp/",
24		}).done(function (data, status, xhr) {
25			if (xhr.status === 200) {
26				this.mapapi = "https://map.ja-group.or.jp/tile/{z}/{x}/{y}.png";
27			}
28		}.bind(this)).always(function (data) {
29			L.tileLayer(this.mapapi, {
30				maxZoom: 18,
31				attribution: '&copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a>,' +
32					' <a href="https://www.another-staff.ne.jp/">Another Staff</a>',
33				tileSize: 256
34			}).addTo(gmap);
35
36			L.control.scale({imperial: false, metric: true}).addTo(gmap);
37
38			var icon = new this.MapIcon();
39			gmap.panTo(icon.marker.getLatLng());
40		}.bind(this));
41	}.bind(this));
42
43	this.MapIcon = function(){
44		this.image = option.icon;
45		this.icon = L.icon({
46			iconUrl: this.image,
47			iconSize: [24, 37],
48			iconAnchor: [12, 37],
49			shadowUrl: "/map/img/icon_shadow.png",
50			shadowSize: [37, 24],
51			shadowAnchor: [2, 22]
52		});
53
54		this.marker = L.marker([lat, lng], {icon: this.icon})
55			.addTo(gmap)
56	};
57};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.