Hi everyone,
I am working on a grid with an alternate view map.
I am trying to load multiple markers by pressing an action button, but I keep getting the error : "unable to get property 'addBulkMarkersCallback' of undefined or null reference"
xbasic function code is shown below.
Any help would be greatly appreciated.
Gregg
Capture.PNG
Capture.PNG
I am working on a grid with an alternate view map.
I am trying to load multiple markers by pressing an action button, but I keep getting the error : "unable to get property 'addBulkMarkersCallback' of undefined or null reference"
xbasic function code is shown below.
Any help would be greatly appreciated.
Gregg
Capture.PNG
Capture.PNG
Code:
function maplocations as c (e as p) dim cn as sql::connection dim args as sql::arguments dim rs as sql::ResultSet dim cs as c dim sqlcode as c dim flag as l dim itconnected as l dim attempts as n dim holdem[0] as p attempts=0 cs="::name::working" sqlcode= "call openpickups()" while .not. itconnected .and. attempts < 6 attempts = attempts + 1 itconnected = cn.open(cs) end while 'debug(1) flag = cn.execute(sqlcode) if .not. flag then maplocations = "alert('Error querying database');" exit function end if rs=cn.ResultSet flag= rs.topropertyarray(holdem) attempts=1 e.markers.resize(holdem.size()) while attempts <= holdem.size() .and. attempts <= 10 if holdem[attempts].lat <> "invalid" then e.markers[attempts].type = "coord" e.markers[attempts].lat = val(holdem[attempts].lat) e.markers[attempts].lon = val(holdem[attempts].lon) e.markers[attempts].title = holdem[attempts].tag+"PU" e.markers[attempts].icon = "http://maps.google.com/mapfiles/marker_green.png" end if attempts= attempts+1 end while e.flagclearoldmarkers = .t. e.flagrecentermapnew = .t. e.flagrecentermapall = .t. cn.FreeResult() delete rs cn.Close() 'e.javascript = "alert('Map altered');" maplocations = "done" end function