瀏覽代碼

Librería solo leaflet(para no cargar tantos js)

Maximiliano Schvindt 7 年之前
父節點
當前提交
5598897b65
共有 1 個文件被更改,包括 150 次插入0 次删除
  1. 150 0
      Resources/views/Leaflet/resources_only_leaflet.html.twig

+ 150 - 0
Resources/views/Leaflet/resources_only_leaflet.html.twig

@@ -0,0 +1,150 @@
+<link rel="stylesheet" href="{{ asset('bundles/leaflet/leaflet/leaflet.css') }}" />
+<link rel="stylesheet" href="{{ asset('bundles/leaflet/leaflet.draw.css') }}" />
+<link rel="stylesheet" href="{{ asset('bundles/leaflet/leaflet/leaflet-search.css') }}" />
+
+<script type="text/javascript" src="{{ asset('bundles/leaflet/leaflet/leaflet-src.js') }}" ></script>
+<script type="text/javascript" src="{{ asset('bundles/leaflet/leaflet/leaflet-search.src.js') }}" ></script>
+
+<style type="text/css">
+div.leaflet-control-layers-overlays label div span, div.leaflet-control-layers-base label div span {
+	vertical-align: super;
+}
+
+div.leaflet-control-layers-overlays label div input {
+	margin-top: -1px!important;
+}
+</style>
+
+
+
+<script type="text/javascript">
+var blueIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/marker-icon-blue.png",
+	iconSize: [25, 41],
+	iconAnchor: [12, 41],
+	popupAnchor: [1, -34],
+	shadowSize: [41, 41]
+});
+
+var redIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/marker-icon-red.png",
+	iconSize: [25, 41],
+	iconAnchor: [12, 41],
+	popupAnchor: [1, -34],
+	shadowSize: [41, 41]
+});
+
+var greenIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/marker-icon-green.png",
+	iconSize: [25, 41],
+	iconAnchor: [12, 41],
+	popupAnchor: [1, -34],
+	shadowSize: [41, 41]
+});
+
+var orangeIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/marker-icon-orange.png",
+	iconSize: [25, 41],
+	iconAnchor: [12, 41],
+	popupAnchor: [1, -34],
+	shadowSize: [41, 41]
+});
+
+var yellowIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/marker-icon-yellow.png",
+	iconSize: [25, 41],
+	iconAnchor: [12, 41],
+	popupAnchor: [1, -34],
+	shadowSize: [41, 41]
+});
+
+var violetIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/marker-icon-violet.png",
+	iconSize: [25, 41],
+	iconAnchor: [12, 41],
+	popupAnchor: [1, -34],
+	shadowSize: [41, 41]
+});
+
+var greyIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/marker-icon-grey.png",
+	iconSize: [25, 41],
+	iconAnchor: [12, 41],
+	popupAnchor: [1, -34],
+	shadowSize: [41, 41]
+});
+
+var blackIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/marker-icon-black.png",
+	iconSize: [25, 41],
+	iconAnchor: [12, 41],
+	popupAnchor: [1, -34],
+	shadowSize: [41, 41]
+});
+
+var miniBubbleRedIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/red_00.png",
+	iconSize: [12, 12]
+});
+
+var miniBubbleRed2Icon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/red_01.png",
+	iconSize: [12, 12]
+});
+
+var miniBubbleOrangeIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/orange_00.png",
+	iconSize: [12, 12]
+});
+
+var miniBubbleBlackIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/black.png",
+	iconSize: [12, 12]
+});
+
+var miniBubbleBlueIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/blue_01.png",
+	iconSize: [12, 12]
+});
+
+var miniBubbleGreenIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/green_01.png",
+	iconSize: [12, 12]
+});
+
+var splitterIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/splitter.png",
+	iconSize: [30, 25]
+});
+
+var miniSquareGreenIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/square_green_00.png",
+	iconSize: [12, 12]
+});
+
+var miniSquareRedIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/square_red_00.png",
+	iconSize: [12, 12]
+});
+
+var miniSquareRed2Icon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/square_red_01.png",
+	iconSize: [12, 12]
+});
+
+var miniSquareBlueIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/square_blue_00.png",
+	iconSize: [12, 12]
+});
+
+var miniSquareBlue2Icon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/square_blue_01.png",
+	iconSize: [12, 12]
+});
+
+var miniSquareOrangeIcon = new L.Icon({
+	iconUrl: "{{ asset('bundles/leaflet/icons/leaflet_color_markers')}}/img/square_orange_00.png",
+	iconSize: [12, 12]
+});
+
+</script>