Salesforce 详细信息页面VisualForce展示客户地理位置接口百度地图

**百度开发提供多种搜索内容**










  

Controller层

public with sharing class OpportunityMapController {
	public String oppId{GET;SET;}
	public Opportunity opp{GET;SET;}
	public String InsJson{GET;SET;}

public OpportunityMapController(ApexPages.StandardController con) 
{
    oppId = con.getId();
    opp = [select ProjectAddress__c from Opportunity where Id =:oppId];
    InsJson = JSON.serializePretty(opp);     //传去前台对象;使用eval({!})解析;
}

}

Salesforce 详细信息页面VisualForce展示客户地理位置接口百度地图_第1张图片

你可能感兴趣的:(Salesforce工具集)