Get data from map service and send to google script

2098
10
Jump to solution
08-19-2019 04:35 PM
by Anonymous User
Not applicable

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

0 Kudos
10 Replies
by Anonymous User
Not applicable

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

0 Kudos