changeset 231:c974783065e6 gmap2

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 15 Mar 2014 16:14:22 +0200
parents c5a06121ed95
children 1706a1bb2a32
files markers.js
diffstat 1 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/markers.js	Sat Mar 15 16:01:11 2014 +0200
+++ b/markers.js	Sat Mar 15 16:14:22 2014 +0200
@@ -32,6 +32,7 @@
   ["PCities",   "pcity"],
   ["Shrines",   "shrine"],
   ["Areas",     "default"],
+  ["Mob",       "monster"],
 ];
 
 
@@ -176,7 +177,7 @@
 
     pmapAddMarkers(pmapAreas["monster"],  8, 11);
     pmapAddMarkers(pmapAreas["pcity"],   8, 11);
-    //pmapAddMarkers(pmapAreas["fort"],    8, 11);
+    pmapAddMarkers(pmapAreas["fort"],    8, 11);
     pmapMMgr.refresh();
 
     google.maps.event.trigger(pmap, "foobar");
@@ -223,8 +224,8 @@
       var poly = new google.maps.Polyline({
         path: coords,
         strokeColor: "#ffffff",
-        strokeWeight: 1,
-        strokeOpacity: 0.7
+        strokeWeight: 2,
+        strokeOpacity: 0.6
       });
       
       poly.setMap(pmap);
@@ -330,11 +331,7 @@
   if (c == "all_t")
   {
     for (var i = 0; i < pmapMarkerTypes.length; i++)
-    {
-      var q = pmapMarkerTypes[i];
-      if (q != null)
-        pmapSetVisState(q[1], show);
-    }
+      pmapSetVisState(pmapMarkerTypes[i][1], show);
   }
 }