reescritura mapero
This commit is contained in:
parent
7e07098abb
commit
e08a0ebd89
10
mapero.php
10
mapero.php
@ -208,12 +208,14 @@ $ids = json_decode($otro_json[0]);
|
||||
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.Default.css" />
|
||||
<script src="librerias/leaflet/dist/leaflet.markercluster-src.js"></script>
|
||||
<script src="librerias/jquery/jquery-2.1.4.min.js"></script>
|
||||
<script type="text/javascript" src="milfs/geojson.js.php?id=<?php echo $_REQUEST['id'] ?>&buscar=<?php echo $_REQUEST['buscar'] ?>&item=<?php echo $_REQUEST['item'] ?>"></script>
|
||||
<?php $cadena_busqueda = $_REQUEST['buscar']; ?>
|
||||
|
||||
<script type="text/javascript" src="milfs/geojson.js.php?id=<?php echo $_REQUEST['id'] ?>&buscar=<?php echo $cadena_busqueda ?>&item=<?php echo $_REQUEST['item'] ?>"></script>
|
||||
<script src="https://unpkg.com/leaflet-responsive-popup@0.6.4/leaflet.responsive.popup.js"></script>
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet-responsive-popup@0.6.4/leaflet.responsive.popup.css" />
|
||||
|
||||
<script>
|
||||
// standard leaflet map setup
|
||||
// standard leaflet map setup ??
|
||||
var map = L.map('map');
|
||||
// map.setView([51.2, 7], 9);
|
||||
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
@ -254,8 +256,8 @@ $ids = json_decode($otro_json[0]);
|
||||
// markers.addLayer(geojsonAux);
|
||||
|
||||
|
||||
//var markers = L.markerClusterGroup();
|
||||
var markers = L.layerGroup();
|
||||
var markers = L.markerClusterGroup();
|
||||
// var markers = L.layerGroup();
|
||||
|
||||
|
||||
markers.addLayer(geojson).addTo(map);
|
||||
|
Loading…
Reference in New Issue
Block a user