jQuery, JSON, PHP and gMap

前端 未结 1 443
臣服心动
臣服心动 2021-02-12 22:48

1) I have a site, using jQuery and the gMap Google Maps plugin. This all works perfectly, and I get my markers set right, and I really like this solution. This is how it looks l

相关标签:
1条回答
  • 2021-02-12 23:09

    It is only a small thing in Loader.php:

    echo "[".$markers.$MyNewPositionMarker."]"; 
    //and removed the [] at the position when loading the new map: WRONG... markers: [data], ... RIGHT: ... markers: data, ... 
    

    (This is just a copy-paste of the solution in the comment to remove the question from the "unanswered" list.)

    0 讨论(0)
提交回复
热议问题