Polyline breaks map

New home Forums Pro Add-on Polyline breaks map

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  Nick Duncan 6 years, 1 month ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #5196

    cmeigs
    Member

    I recently purchased the Pro version of this plugin so I can overlay a polyline on a map but instead it breaks the entire map and it no longer displays. Please help.

    URL: http://dev.cazenoviabeveragetrail.com/directions/

    Thanks

    #5220

    Nick Duncan
    Keymaster

    Hi cmeigs

    If you go to the edit page of that map and click on the “polylines” tab, please can you paste the data for that polyline here so I can debug?

    Kind regards
    Nick

    #5221

    Nick Duncan
    Keymaster

    It should look something like this:
    (40.990264773996884, -97.3828125),(43.078919299859656, -95.44921875),(42.88602714832882, -91.669921875),(41.32113839523956, -89.736328125),(39.920269337634004, -89.736328125),(37.79893346559687, -90.439453125),(36.255348043040904, -91.142578125),(34.82507742547058, -91.318359375),(33.516209361109034, -89.208984375),(33.369531277912934, -87.01171875),(32.26158802054526, -83.759765625),(30.83857291152264, -84.55078125),(31.064698120353743, -87.978515625),(31.064698120353743, -90.703125),(30.914007434286322, -93.69140625),(29.928754522717018, -96.15234375),(28.77969638469352, -97.55859375),(28.084096949164735, -100.634765625),(27.851218915187083, -103.18359375),(28.471105728831816, -107.138671875),(29.852555290063993, -110.302734375),(34.8971951696173, -112.412109375),(39.78532331459258, -112.060546875),(43.59033826146747, -110.478515625),(46.74927110475196, -107.490234375),(47.645036570200254, -103.271484375),(44.223552064879726, -102.12890625),(38.21444607848999, -107.841796875),(36.04243673532787, -107.666015625),(35.04124081149451, -104.58984375),(34.8971951696173, -101.77734375),

    #5235

    cmeigs
    Member

    This is what it looks like on the admin panel:

    42.979256213019184, -75.88083297014236,42.96845473418188, -75.87533980607986,42.95777698976911, -75.8664134144783,42.95538994641736, -75.86469680070877,42.94961040536417, -75.86315184831619,42.94194539428803, -75.85971862077713,42.93013186935048, -75.85937529802322,42.93013186935048, -75.8550837635994,42.93000618137024, -75.85937529802322,42.926361118373315, -75.85954695940018,42.92057885188167, -75.86246520280838,42.91404172321565, -75.86675673723221,42.90310305334814, -75.87516814470291,42.89807312842145, -75.8799746632576,42.89492921696678, -75.8803179860115,42.891156311642064, -75.8770564198494,42.88813782119799, -75.87533980607986,42.88348402568742, -75.87499648332596),

    But this is what it looks like in the database:

    (42.979256213019184, -75.88083297014236),(42.96845473418188, -75.87533980607986),(42.95777698976911, -75.8664134144783),(42.95538994641736, -75.86469680070877),(42.94961040536417, -75.86315184831619),(42.94194539428803, -75.85971862077713),(42.93013186935048, -75.85937529802322),(42.93013186935048, -75.8550837635994),(42.93000618137024, -75.85937529802322),(42.926361118373315, -75.85954695940018),(42.92057885188167, -75.86246520280838),(42.91404172321565, -75.86675673723221),(42.90310305334814, -75.87516814470291),(42.89807312842145, -75.8799746632576),(42.89492921696678, -75.8803179860115),(42.891156311642064, -75.8770564198494),(42.88813782119799, -75.87533980607986),(42.88348402568742, -75.87499648332596)

     

    By the way both the edit and delete buttons do not work…

    #5238

    Nick Duncan
    Keymaster

    Hi

    Can you add a “,” at the end of that sequence in the table? That should fix it. Not quite sure why this happened but I’ll have to look into it

     

    So it should be:

    (42.979256213019184, -75.88083297014236),(42.96845473418188, -75.87533980607986),(42.95777698976911, -75.8664134144783),(42.95538994641736, -75.86469680070877),(42.94961040536417, -75.86315184831619),(42.94194539428803, -75.85971862077713),(42.93013186935048, -75.85937529802322),(42.93013186935048, -75.8550837635994),(42.93000618137024, -75.85937529802322),(42.926361118373315, -75.85954695940018),(42.92057885188167, -75.86246520280838),(42.91404172321565, -75.86675673723221),(42.90310305334814, -75.87516814470291),(42.89807312842145, -75.8799746632576),(42.89492921696678, -75.8803179860115),(42.891156311642064, -75.8770564198494),(42.88813782119799, -75.87533980607986),(42.88348402568742, -75.87499648332596),

    #5251

    cmeigs
    Member

    Great solution, that worked well. Very simple solution to simply add a comma at the end of my string, now if that could only be automated   8^)

     

    #5252

    Nick Duncan
    Keymaster

    LOL we’re onto that 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Polyline breaks map’ is closed to new replies.