Please help- Google Street view and custom merge fields in an ArcMap10.4 pop up?

3291
10
03-13-2016 08:28 AM
NickNelson3
Deactivated User

I have a shapefile layer showing the City of Austin site plans as polygons. The idea is when someone clicks on the polygon, a pop up would show the Google Street View of the property, a couple of the fields from the record, and a custom URL to the City of Austin website to view more details on the site plan.  I have been trying to knock this out for hours, any insight would be greatly appreciated.

City of Austin website link details:

Here is the first part of the URL:  https://www.austintexas.gov/devreview/b_showpublicpermitfolderdetails.jsp?FolderRSN=

After the =, I need to populate the data from a field in the shapefile.  The field is called folderrsn

So everything put together would look like this:   https://www.austintexas.gov/devreview/b_showpublicpermitfolderdetails.jsp?FolderRSN=10880075

The "10880075" is the value currently inside the field folderrsn.

0 Kudos
10 Replies
WesMiller
Deactivated User

You could use this tool I created GoogleTool.esriaddin

You could also populate the URL below in a field to do the hyperlink or popup

"http://data.mapchannels.com/mm/dual2/map.htm?x=" +  str(adx) + "&y="+ str(ady) + "&z=16&xb=" + str(adx) + "&yb="+  str(ady) + "&bar=1&mw=1&gm=0&ve=2&sv=1"#&svb="+ String(computeAngle2(startPt,lastPnt))

EDIT:

For the second part you can use the field calculator with the parser set to python

" https://www.austintexas.gov/devreview/b_showpublicpermitfolderdetails.jsp?FolderRSN=" + ! folderrsn!

I also found some old code that will populate the google street view url for a point file, see below.

import arcpy
""" Create and store URL for Google street view of address points"""
#Address Points
addrs = r"Your feature class here"


#Create Spatial Reference
sr = arcpy.SpatialReference.FactoryCode = 4326


#Create Cursor and set Spatial Reference of cursor so xy is in decimal degrees    
adRows = arcpy.UpdateCursor(addrs,"",sr)


#Loop through each address point and create url with address point xy 
for ad in adRows:
    adPt = ad.Shape
    pnt = adPt.getPart()
    #Change pictures to your field name
    ad.pictures ="http://data.mapchannels.com/mm/dual2/map.htm?x=" +  str(pnt.X) + "&y="+ str(pnt.Y) + "&z=16&xb=" + str(pnt.X) + "&yb="+  str(pnt.Y) + "&bar=1&mw=1&gm=0&ve=2&sv=1"#&svb="+ String(computeAngle2(startPt,lastPnt)) 
    adRows.updateRow(ad)
NickNelson3
Deactivated User

Wes- I just tried the tool you sent. I followed the instructions and

installed it, now I am unable to open ArcMap. Not sure what to do. Would

you mind giving me a quick call to troubleshoot? 512.906.6757

0 Kudos
WesMiller
Deactivated User

I've never had that happen before. Try some of the normal stuff like: restart your machine, and rename your "Normal.mxt" mine is located ""C:\Users\<<yourusernamehere>>\AppData\Roaming\ESRI\Desktop10.2\ArcMap\Templates\Normal.mxt"

0 Kudos
NickNelson3
Deactivated User

ok will do.

0 Kudos
NickNelson3
Deactivated User

It didnt work. I am using 10.4. I wonder if thats the issue. Here is a

link to the video I just made showing I cant open the program.

https://www.dropbox.com/s/vn5y3h72pj6ios4/arc%20map%20wont%20start.mp4?dl=0

Do you know how to uninstall the tool without opening the program?

0 Kudos
WesMiller
Deactivated User

You may want to call tech support.

0 Kudos
NickNelson3
Deactivated User

ok ;(

0 Kudos
NickNelson3
Deactivated User

Wes- your tool crashed my esri desktop program and support has not

responded. I cant even open my program. Any ideas how to help?

0 Kudos
WesMiller
Deactivated User

Did you try calling them?

Contact Tech Support

0 Kudos