mirror of
https://github.com/jlengrand/geospatial-messenger.git
synced 2026-03-10 08:21:17 +00:00
Better icons
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 201 KiB |
BIN
src/main/resources/static/m.png
Normal file
BIN
src/main/resources/static/m.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
@@ -32,7 +32,7 @@ geolocation.on("error", function (error) {
|
||||
});
|
||||
var positionFeature = new ol.Feature();
|
||||
positionFeature.setStyle(new ol.style.Style({
|
||||
image: new ol.style.Icon({src: "horse.png", scale: 0.25})
|
||||
image: new ol.style.Icon({src: "u.png", scale: 0.5})
|
||||
}));
|
||||
var centerDefined = false;
|
||||
geolocation.on("change:position", function () {
|
||||
@@ -134,7 +134,7 @@ var vectorSource = new ol.source.Vector({
|
||||
|
||||
var vector = new ol.layer.Vector({
|
||||
source: vectorSource,
|
||||
style: new ol.style.Style({image: new ol.style.Icon({src: "pig.png", scale: 0.1})}),
|
||||
style: new ol.style.Style({image: new ol.style.Icon({src: "m.png", scale: 0.5})}),
|
||||
});
|
||||
|
||||
map.addLayer(vector);
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 653 KiB |
BIN
src/main/resources/static/u.png
Normal file
BIN
src/main/resources/static/u.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.9 KiB |
Reference in New Issue
Block a user