Configuring Pictometry in GVH 2.4
Hi Everyone,
I'm trying to set up Pictometry as a 3rd party map in GVH 2.4. I have been able to add it to the viewer, but when it loads I get " Error Loading Application. Authentication Failure, invalid session key."
In the Pictometry.aspx file, I see two variables:
protected static string ApiKey = "";
protected static string SecretKey = "";
I tried to add my key to each and I get the same message. Can anyone enlighten me on where I should set the key, and if there's anything else that needs to be configured. I haven't found any documentation...
Dave
-
Hi Dave,
Settings those 2 variables is all that is required to setup Pictometry. You may need to contact Pictometry and ensure those keys works with their IPA, which is what the Pictometry.aspx sample is based on.
Thanks,
0 -
Is there a button that should pop-up once that's set???
0 -
Hi Cattyann,
Are you referring to a button to open Pictometry once the keys are set?
Thanks,
0 -
Yes
I thought it would pop-up when I pressed the 3rd party button but not seeing anything at all...
My understanding is that I don't have to include any lines in the .json files for this???
0 -
Same here, trying to figure it out. No luck.
Since upgrading to 4.3, and 2.4 Silverlight and HTML it seems to have broken my pictometry links. I've just started to try and track it down.
0 -
You do actually need to update the .json files in order for this to appear, in addition to adding the keys.
You can follow the Bing Maps example to configure it and just update the following:
id: bingMaps -> pictometry
*Note: If you're using both bing maps and pictometry, make sure you seperate them with a comma
If you also want both bing maps and pictometry to appear when clicking the 3rd Party Maps button by default, be sure to update the 'defaultComponents' property (assuming both Bing Maps and Pictometry are configured) to:
"defaultComponents": [ "bingMaps", "pictometry" ],
Thanks,
0 -
I have one other line that I think need to be configured
public string IpaJsLibUrl = "http://pol.pictometry.com/ipa/v1/embed/host.php?apikey="MylongAPIkey "+ ApiKey;
I'm assuming that API key goes in the quotes there do I elminate this bit at the end or leave it be or leave the full line alone??? ( + ApiKey;)????
Getting closer!!!
0 -
You can actually elminate all references to the API key in the IpaJsLibUrl property if you are using the javascript library from pol.pictometry.com, leaving you with:
protected static string ApiKey = "REPLACE_WITH_API_KEY ";
After replacing those keys, it should just load up in the 3rd party maps container. If is not appearing in the container at all, that may be an issue with the configuration, rather then the Pictometry.aspx page.
Thanks,
0 -
Interface pop up fine now but now I get
Referring hostname does not match IPA key hostname...
so thinking this is on Pictometry side... coz when I add the hostname
which I assume to be ~line 17 runat "server" l eaving it blank I get the hostname error, adding the domain (i assume my server name) gives me an HTML application error...
Thanks for your help just need to get that page to load at this point.
0 -
Ya, that would be a Pictometry license issue. Each pair of API Key and Secret Key only works on a specific domain. Once that is resolved, t here shouldn't be a need to change line 17 and can be left as:
<script runat="server">
Cody
0 -
Thanks I'll go see what is up we probably have to reset the doman...
0 -
Thanks Cody. What do the API key and secret key correspond to in terms of the values I set in the Pictometry Extension? I already have valid codes that work in GVS.
Dave
0 -
Sorry Dave, I don't actually know whether they correspond to the same keys used in the Pictometry Extension.
The GVS Extension is based off the Pictometry Navigator API , whereas GVH uses the Integrated Pictometry Application (IPA). You may need to contact Pictometry for a seperate set of API keys .
Cody
0 -
@Dave
you will need a new set of keys generated for the Pictometry IPA they also look at your originating domain
which is what I seem to be stuck on at the moment. Once you get the keys just follow the instructions
Cody provided to me in this thread and hopefully you won't end up with my current issue.
Let me know how it goes for you.
0 -
@Cody
thanks again for your help
I got it working then had to remove that particular instance because it was public a no-no with Pictometry
unless you pay the extra $500 fee for public consumption sans fancy tools.
0 -
Essentials 4.3 and HTML5 2.4
I've configured the 3rd party maps to use Pictometry (keys, pictometry.asps and desktop.json.js updates). When I activate the 3rd Party Map tool in the viewer, the Pictometry pane displays their tools and the Viewer navigation/tools panel, but there is a message "Please set a location or search for an address" message and no image (see attached). Has anyone else seen this problem?
Thanks,
Frank
/customer/servlet/servlet.FileDownload?file=00P6000000elzsEEAQ
0 -
@Frank
I am experiencing the same problem you are. Did you ever get this figured out?
0 -
/customer/servlet/servlet.FileDownload?file=00P6000000em1FbEAI
Mine is working without issues. I have my map and the Pictometry interface synchronized.
Also do you have a default location set in the Pictometry online interface?
0 -
Chris,
Yes, I was able to get the Pictometry map configured correctly. I need to set the "defaultComponents" to "pictometry" (lower case p) and the "externalComponents" "id:" to "pictometry" (lower case p). Lower case "p" versus upper case "P" was the problem.
Sorry I didn't post this sooner.
Frank
0 -
What about if you use a self-hosted Pictometry application? How in the world do you set it up?
In the Silverlight Viewer, I am using a workflow that captures a point, projects to WGS84 and then appends the x-y location to a URI sent to our self-hosted pictometry server with login credentials. See image below.
Any ideas of what I should do? This workflow will not work in HTMLViewer. If anyone can tell me how to fix this workflow to work, I would be fine with keeping the workflow.
/customer/servlet/servlet.FileDownload?file=00P6000000elzWcEAI
0 -
Frank,
Thanks for posting that. I was running into the same issue as you and Chris.
When I added pictometry into defaultComponents, my site wouldn't load anymore. I probably wasn't valid JSON. I did however change the id from "pictometryMaps" to "pictometry" and it started working.
Below is my Desktop JSON configuration, it may be useful to someone trying to figure this out.
"defaultComponents": [],
]
Carmen - I would recommend starting a new thread specifically for self-hosted Pictometry integrations. It might not get the attention it needs in the bottom of this thread.
0
Please sign in to leave a comment.
Comments
21 comments