Salesforce Query to Determine Markers within a Shape Layer - salesforce

I am using Salesforce Maps to visualize locations (stores) in certain regions (states). What I would like to do is create a SOQL query to generate a list of stores that are contained within a certain region.
How can this be done, if at all?
I have tried to generate the query according to the following documentation:
Location-based SOQL Queries
This appears only to determine if an object marker is within a given distance of another object marker or specific location of a layer's center.
However, I want a query that determines if the marker is within the actual boundary of the shape layer and not just the layers center.

Related

Is it possible to drag-snap a point of a shape being edited by the drawing manager to another shape's point location?

I'd like a user to be able to draw a polygon using the Azure Maps Drawing Manager and have the ability to move a point of the polygon to near one of another polygon's points and have the dragged point snap to the same location such that the resulting 2 points would be the same.
I know there is snap capability with a grid but don't see a sample for this behaviour?
The ultimate goal is to prevent polygon overlaps, assuming the intersecting shared line of adjoining shapes is excluded from determination of which polygon a point resides within.
I can allow a user to manually draw and get as close as possible of course, and provide some assertion to confirm no polygons overlap but would additionally like a nice snap-to-point experience if possible.
You can find hundreds of samples for Azure Maps here: https://samples.azuremaps.com/
As you noted, the snapping grid is likely the best place to start in your scenario. Here are some specific samples of this:
https://samples.azuremaps.com/?sample=use-a-snapping-grid
https://samples.azuremaps.com/?sample=snap-grid-options
The following sample is an example of a custom snapping scenario where the routing service is used to snap a drawn line to a route (the route part can be swapped out for custom logic): https://samples.azuremaps.com/?sample=snap-drawn-line-to-roads

Smart map with grid in react. Accessible via coordinates. Cell multi choose ability

i wanted to ask how react can be used to build a smart map with cells on top. i would like to limit the area to a square.
the cells should be accessible via coordinates.
Attached is a picture of how I imagine it to be.
Thank you
Picture of example

Azure Maps Line Layer and Pop Ups

I am creating a web page that has an Azure Maps control on it. The purpose of it being a sort of snail trail of movement. I have the map rendering and am using a LineLayer with a SymbolLayer in order to draw a line from point to point and then put an arrow on the line to show movement.
Another requirement is that we are able to hover over the points on the map to see information about that specific point, but I don't seem to be finding much online about "Points" on a line.
Any idea how to access individual points in the Linestring and add attributes to them in order to show a pop up?
To accomplish what you are asking you would need to have a second data source that contains the individual points with the attribute information, then connect this data source to a bubble or symbol layer. By doing this, you can add an event to that layer.
Another, less elegant approach is to have a property in your linestring that has an array of all the attribute information for each point. Then when the user hovers the line, loop through all points in the line and calculate the distance to each point from the mouse pointer location, use the index of the closest point to do a look up in your array.

Bing Maps in react. How do I display the pinned locations as a list, in a separate scrollable box over the map? I cant find the docs for it

I have a pretty basic map with hardcoded number of locations with infoboxes. But I want to display the same info in a list that is scrollable and is laid out on top and left of the map. If you click on one list item, the corresponding pin would be highlighted, and so on...
I can't find it in the bing maps docs. Any help?
To do this, give each pushpin a unique ID and pass that as a parameter into your list item, storing this in the rel attribute is a common approach. Then when someone clicks on your list item, use that ID to look up the pushpin. Similarly, if someone interacts with the pin, you can look up the list item that has that parameter.
I don't have an example using Bing Maps for this, but here is one that uses Azure Maps: https://azuremapscodesamples.azurewebsites.net/?sample=Page%20through%20POI%20results This should help you understand the concept. If you decide to use Bing Maps, you will have to loop through all pins in your layer can check to see which one has the ID you are looking for.

Is there a documentation on how to use weather overlay from noaa.gov?

I am trying to add a weather overlay to my maps , the tile images on Noaa.gov are what i want but i couldn't find any documentation on how to construct url to consume & arrange tiles of overlays for a given lon/lat. below is the a sample url that returns a single tile.
http://radarcache.srh.noaa.gov/tc/tc.py/1.0.0/ridge::NAT-N0Q-201211191510/8/62/97.png
update:
The web service i am working on generates a sectional aviation chart/map for a given lon/lat dimension and zoom level . one of the overlays i am rendering on top of the generated base map is weather(radar reflective ..)
based on the information i have (lon/lat, dimension and zoom level) i want to render weather overlay on top of my base map.
the challenge i am facing is how do i get weather overlay using lon/lat ?
After researching a lot i found out that NOAA Tile System uses this Tile arrangement, based on that i was able to get PNG images overlay for a given (lon/lat/zoom) as follows
http://ridgewms.srh.noaa.gov/tc/tc.py/1.0.0/ridge::NAT-N0Q-{0:yyyyMMddHHmm}/{1}/{2}/{3}.png
Where
{0:yyyyMMddHHmm} = date time in 5 minute increments
{1} ZoomLevel
{2} X or tile column
{3} Y or Tile Row
Without more information about what you are trying to integrate into, here is what I know. If you want to create a custom KML file, there is this page that will do that for you. For more info about other layers, check out this page as well.
If you provide more info about your environment, we might be able to help with more specifics.
EDIT:
For just the transparent gifs, see this page here http://forecast.weather.gov/jetstream/doppler/ridge_download.htm
There is quite a bit of information for downloading actual data here http://www.ncdc.noaa.gov/oa/radar/radardata.html

Resources