Get data from map service and send to google script

433
10
Jump to solution
08-19-2019 04:35 PM
Highlighted
New Contributor III

Hello:

I have this service: 

Query: Parcels (ID: 0) 

I want to get the coordinates where AIN or APN is specified and send that to a google map page I have that is locally hosted. The user will enter the AIN or APN on another site I also locally host which will then be sent to the google map page.

A query example:

How do I make a call for this in the script where the user enter the AIN or APN and then send the lat/long to the google map script using the ArcGIS JS API?

ArcGIS REST API

ArcGIS Server with JavaScript API

Reply
0 Kudos
10 Replies
Highlighted
New Contributor III

Partial Solution:

from parent:

document.getElementById('street').contentWindow.moveToLoc(latt, lon);

to child (to run on receipt):

function moveToLoc(lat, lng){
var moveto = new google.maps.LatLng(lat, lng);
map.panTo(moveto);
}

I just need to add a marker when the maps re-centers when the moveToLoc function is ran

Reply
0 Kudos