mysql - Here map lon/lat query over dateline -


i have trouble @ location query here maps. have stored many points in database longitude , latitude. request rectange here api , got coordinates northwest , southeast corner.

for example:

lon: -19°/ lat: 55° // lon: 49°/ lat:36° 

this works well:

but if request rectangele near australia reach dateline , got positive , negative latitude.

for example:

lon: 113° / lat: -12° // lon: -177° /lat: -36° 

how can request points if rectangle on dateline (113° --> -177° ) have mysql query.

the api need upper left corner , bottom right corner.

here example

so

function addrectangletomap(map) {   var boundingbox = new h.geo.rect(53.1, 170.1, 43.1, -170.1);   map.addobject(     new h.map.rect(boundingbox, {       style: {         fillcolor: '#ffffcc',         strokecolor: '#e8fa75',         linewidth: 8       },     })   ); } 

enter image description here


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -