Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- request.done(function( mapInfo) {
- for (var i = 0; i < mapInfo.length; i++) {
- var project = mapInfo[i];
- var point = new Point(project.Longitude, project.Latitude);
- var pointSymbol = new SimpleMarkerSymbol();
- pointSymbol.setStyle(SimpleMarkerSymbol.STYLE_CIRCLE);
- pointSymbol.setSize(12);
- var pointInfoTemplate = new InfoTemplate();
- pointInfoTemplate.setTitle("Project Details");
- pointInfoTemplate.setContent('//JSON Data');
- var pointGraphic = new Graphic(point, pointSymbol).setInfoTemplate(pointInfoTemplate);
- points.push(pointGraphic);
- }
- for (i = 0; i < points.length; ++i) {
- map.graphics.add(points[i]);
- }
- });`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement