Hi John,
If you want to extend SSA you will need to use extensibility
https://docs.precisely.com/docs/sftw/analyst/22.1/en/pdf/analyst-v2022-1-extensibility-guide.pdfSSA uses OpenLayers for the map so this is what you will need to interact with.
Here are a few things you will need to do (note this is incomplete)
// import map service
import { MapService } from 'src/app/pb-maps/services/map.service';
// add to constructor
constructor(
private mapService: MapService
}
// interact with map
ngOnInit() {
const map = this.mapService.getMap();
map.on('singleclick', <do something>);
map.on("pointerdrag", <do something>);
}
See OpenLayers doco for more info
https://openlayers.org/en/latest/apidoc/module-ol_Map-Map.html#on------------------------------
Duri Bradshaw
Spatial IT Consultant
Insight GIS
------------------------------
Original Message:
Sent: 11-08-2022 10:31
From: John Chapman
Subject: Capture lat/long on Click Event
We are using the Google API. We would like to switch to SSA. In the current solution, using Google, we programmatically set a marker at a lat/long and listen for 'click' and 'mousemove' events (see below). How can we do this using the SSA API?

------------------------------
John Chapman
Southern Farm Bureau Casualty Ins
Cayce SC
------------------------------