We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f58d12b commit 192f064Copy full SHA for 192f064
examples/leaflet/plot_symbolGeometricQuery.html
@@ -180,7 +180,11 @@ <h5 class='panel-title text-center' data-i18n="resources.title_symbolGeometricQu
180
queryResult = L.supermap.plotting.query(map).getGObjectsInCircle(latLngs[0], radius);
181
}
182
if (symbolType === SuperMap.Plot.SymbolType.RECTANGLESYMBOL) {
183
- queryResult = L.supermap.plotting.query(map).getGObjectsInRect(latLngs[0], latLngs[1]);
+ if(latLngs[0].lng < latLngs[1].lng){
184
+ queryResult = L.supermap.plotting.query(map).getGObjectsInRect(latLngs[0], latLngs[1]);
185
+ } else {
186
+ queryResult = L.supermap.plotting.query(map).getGObjectsInRect(latLngs[1], latLngs[0]);
187
+ }
188
189
if (queryResult && queryResult.length !== 0) {
190
for (var i in queryResult) {
0 commit comments