Skip to content
Snippets Groups Projects
Commit afe26161 authored by Rhys Evans's avatar Rhys Evans
Browse files

Further work on integration of map iframe

parent d4ef20f6
No related branches found
No related tags found
1 merge request!30Resolve "As a user I would like to see a map of the landmarks, so that I can figure out where to go"
......@@ -33,6 +33,9 @@ public class PlacesController {
// List<Location> locations = locationRepo.getAllLocation();
// List<Location> approvedLocations = locationRepo.getApprovedLocations2(locations);
List<LocationsCoordinates> locCoords = placeRepo.getAllLocationCoords();
for (LocationsCoordinates coord: locCoords){
coord.
}
// modelAndView.addObject("locations", approvedLocations);
modelAndView.addObject("locationCoords", locCoords);
return modelAndView;
......
......@@ -9,6 +9,8 @@
<main>
<div th:each="coord, indexValue:${locationCoords}">
<p th:text="*{coord.getLocationID()}"></p>
<p th:text="*{coord.getLocationCoordsLat()}"></p>
<p th:text="*{coord.getLocationCoordsLong()}"></p>
<!-- <p th:text="${locations[indexValue.index]}"></p>-->
......@@ -22,19 +24,18 @@
scrolling="no"
marginheight="0"
marginwidth="0"
th:src="https://maps.google.com/maps?q='+*{coord.getLocationCoordsLat()}+','+*{coord.getLocationCoordsLong()}+'&hl=es&z=14&amp;output=embed"
>
th:src="'https://maps.google.com/maps?q='+ ${coord.getLocationCoordsLat()} +','+ ${coord.getLocationCoordsLong()} +'&hl=es&z=14&amp;output=embed'">
</iframe>
<br />
<small>
<a
th:href="https://maps.google.com/maps?q='+{coord.getLocationCoordsLat()}+','+*{coord.getLocationCoordsLong()}+'&hl=es;z=14&amp;output=embed"
style="color:#0000FF;text-align:left"
target="_blank"
>
See map bigger
</a>
</small>
<!-- <br />-->
<!-- <small>-->
<!--&lt;!&ndash; <a&ndash;&gt; //https://maps.google.com/maps?q=51.57623,-3.21910&hl=es&z=14&amp;output=embed">-->
<!-- th:href="https://maps.google.com/maps?q='+{coord.getLocationCoordsLat()}+','+*{coord.getLocationCoordsLong()}+'&hl=es;z=14&amp;output=embed"-->
<!-- style="color:#0000FF;text-align:left"-->
<!-- target="_blank"-->
<!-- >-->
<!-- See map bigger-->
<!-- </a>-->
<!-- </small>-->
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment