diff --git a/lpadsjs/editor.md b/lpadsjs/editor.md
index 1679d71..0cf6cfa 100644
--- a/lpadsjs/editor.md
+++ b/lpadsjs/editor.md
@@ -1,4 +1,5 @@
+
LPEditor
diff --git a/lpadsjs/editormain.js b/lpadsjs/editormain.js
index 3d9f9fb..5e048e3 100644
--- a/lpadsjs/editormain.js
+++ b/lpadsjs/editormain.js
@@ -116,15 +116,29 @@ function findOverride(adData) {
return -1
}
+function setupIcon(url, size) {
+ return L.icon({
+ iconUrl: url,
+ iconSize: [size[0],size[1]],
+ iconAnchor: [size[0]/2,size[1]],
+ popupAnchor: [0,-size[1]+0]
+ })
+}
+
function loadMarker(data) {
data.forEach(function(ad){
m = L.marker(ad.adLocation.split(", "))
if (ad.adPinImage != null) {
+ if (ad.adPinImage.search("composite_map_square") != -1) {
+ newIcon = ad.adPinImage.replace("composite_map_square_logo", "composite_map_pinlet")
+ if (ad.adPinImage.search("_v") == -1) {
+ newIcon += "_v1"
+ }
+ } else {
+ newIcon = ad.adPinImage
+ }
m = L.marker(ad.adLocation.split(", "), {
- icon: L.icon({
- iconUrl: ad.adPinImage,
- iconSize: [32,32]
- })
+ icon: setupIcon(newIcon, [43,60])
})
}
m.on("click", function(){
diff --git a/lpadsjs/mapads_marker.html b/lpadsjs/mapads_marker.html
index d2f7873..764e357 100644
--- a/lpadsjs/mapads_marker.html
+++ b/lpadsjs/mapads_marker.html
@@ -37,6 +37,7 @@
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/lpadsjs/search.html b/lpadsjs/search.html
index e7f68aa..2774f64 100644
--- a/lpadsjs/search.html
+++ b/lpadsjs/search.html
@@ -3,6 +3,7 @@
MapAds search
+