Changeset 7823 for trunk/src


Ignore:
Timestamp:
Apr 18, 2010, 10:48:06 AM (15 years ago)
Author:
janveeden
Message:

The famous markers placed in the sea were giving problems on giving info. Fixed now.

Location:
trunk/src/map/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/map/inc/node_info.php

    r7821 r7823  
    5050foreach($markers as $marker)
    5151{
    52         if($marker['name'] == $_GET['name'])
     52        if(!$marker['location'] == null)
    5353        {
    54                 $name = $marker['name'];
    55                 $location = $marker['location'];
     54                if($marker['name'] == $_GET['name'])
     55                {
     56                        $name = $marker['name'];
     57                        $location = $marker['location'];
     58                }
    5659        }
    5760}
  • trunk/src/map/inc/nodemapWL.js

    r7822 r7823  
    2424
    2525 
    26 
    27         //Go through the array 'markers' (Declared in index.php) and add a marker for each marker stored in the array using our addMarker function
     26        /*
     27         * Go through the array 'markers' (Declared in index.php) and add a marker for each marker stored in the array
     28         * using our addMarker function.
     29         * If the latLng of the marker is both 0
     30         */
    2831        for (var i=0; i<markers.length; i++) {
    2932                var current = markers[i];
    30                 var gMarker  = addMarker(current, i);
     33                if(current.latitude[0] > 0 || current.latitude[0] < 0)
     34                {
     35                        var gMarker  = addMarker(current, i);
     36                }
    3137        }
    3238       
Note: See TracChangeset for help on using the changeset viewer.