popUpRenderer.setStyle("skinClass", Class(widgets.MyPopUps.PopUpRendererSkin));
private function showLocation(data:Object):void { hideInfoWindow(); graphicsLayer.clear(); var ptGraphic:Graphic = new Graphic(); ptGraphic.geometry = data.point; graphicsLayer.add(ptGraphic); var popUpInfo:PopUpInfo = new PopUpInfo(); popUpInfo.title = data.title; popUpInfo.description = data.content; var infoWindowRenderer:ClassFactory = new ClassFactory(PopUpRenderer); infoWindowRenderer.properties = { popUpInfo: popUpInfo }; graphicsLayer.infoWindowRenderer = infoWindowRenderer; popUpRenderer.popUpInfo = popUpInfo; popUpRenderer.graphic = ptGraphic; popUpRenderer.setStyle("skinClass", Class(widgets.MyPopUps.PopUpRendererSkin)); if (map.scale > zoomScale) { map.scale = zoomScale; } map.centerAt(data.point); infoWindowShow(); }
import widgets.MyPopUps.PopUpRendererSkin;
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.